Matthias Shapiro

I need fewer hobbies

Windows 8 GridView Cross-Swipe and Tap (multi-selection + single selection)

This is for getting a GridView to use the same drag-down = select,  tap = action interaction model that we see on the Windows 8 start screen.

In your GridView, create a copy of the default ItmeContainerStyle. You can do this by right clicking on the GridView in the designer space (or in the document tree) and selecting “Edit Additional Templates => Edit Generated Item Container (ItemContainerStyle) => Edit a Copy…”


In the generated ItemContainerStyle, delete the following property:

<Setter Property="IsHoldingEnabled" Value="True"/>

Then, change the following properties and add the event handlers on your GridView:

   ItemContainerStyle="{StaticResource SwipeEnabledItemContainerStyle}"
   IsItemClickEnabled="True" >
This entry was posted in Windows 8, XAML. Bookmark the permalink.

One Response to Windows 8 GridView Cross-Swipe and Tap (multi-selection + single selection)

  1. Pingback: Dew Drop – July 2, 2014 (#1806) | Morning Dew