I have a list view, on a panoramic control. I've also created an event for MouseLeftButtonUp however I find that when scrolling between the panorama items the MousLeftButtonUp is triggering (it makes sense why but it is unexpected from a user perspective).
Is there any way to create a click event for a list? Or add a behavior that simulates that?
Checkout the Tap gesture from the Gesture service that's part of the toolkit.
WP7 Tip of the Day: Silverlight Toolkit: Gestures
<ListBox Height="100" HorizontalAlignment="Left" Margin="12,186,0,0" Name="listBox1" VerticalAlignment="Top" Width="460" >
<Controls:GestureService.GestureListener>
<Controls:GestureListener Tap="GestureListener_Tap">
</Controls:GestureListener>
</Controls:GestureService.GestureListener>
<ListBoxItem Content="1"/>
<ListBoxItem Content="2"/>
<ListBoxItem Content="3"/>
<ListBoxItem Content="4"/>
</ListBox>
and
public void GestureListener_Tap(object sender, GestureEventArgs e) {
System.Diagnostics.Debug.WriteLine("tap");
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With