Select horizontal wp7 selection

I am looking for a control that allows me to scroll through a list of items. Scrolling horizontally will move between the next and previous items. The control also ensures that the selected item moves to the center when not being processed. This control will only take half a page, and I would like the options on the left and right to be visible and streamlined.

In this way

  <-->
*][**][*

So my question is: is there such a control that already exists, and if so, what is it called?

+5
source share
2 answers

, GestureService Silverlight Toolkit. Flick .

XAML

<toolkit:GestureService.GestureListener>
    <toolkit:GestureListener Flick="GestureListener_Flick" />
</toolkit:GestureService.GestureListener>

#

private void GestureListener_Flick(object sender, FlickGestureEventArgs e)
{
    if (e.Direction == System.Windows.Controls.Orientation.Horizontal)
    {
        if (e.HorizontalVelocity < 0)
        {
            // flick right
        }
        else
        {
            // flick left
        }
    }
    else
    {
        if (e.VerticalVelocity < 0)
        {
            // flick up
        }
        else
        {
            // flick down
        }
    }
}
+9

, .

, .

+2

All Articles