Where to start on creating finger swipe navigation in an collection of items

Posted by Thomas Stock on Stack Overflow See other posts from Stack Overflow or by Thomas Stock
Published on 2010-04-30T22:08:02Z Indexed on 2010/04/30 22:17 UTC
Read the original article Hit count: 581

Lets say I want to make a control to select any integer number by dragging on a "bar" with numbers:

156 selected (156 is selected)

Mousedown on "159" and dragging towards the left and then doing mouseup changes the control to this:

after mousedrag (160 is selected)

I've been experimenting for the past 3 hours but I'm inexperienced in Silverlight so I'm having problems getting started.

My current guess is I should seperate this into 2 steps:

Step 1: Build this control without swiping behavior. Just 2 buttons to go up a number or go down a number

Step 2: Replace the buttons by handling mouse events.

With my limited knowledge I think I would manage building a crappy control that does this, with very messy xaml and c# and lots of headaches when trying to apply styling and fancy state transitions, but I was hoping some xaml wizards could get me started with the basic approach?

Edit:

This is an implementation of what I'm trying to achieve in Silverlight:

Iphone's datepicker: alt text

© Stack Overflow or respective owner

Related posts about Silverlight

Related posts about silverlight-4.0