How to stop the WP7 control that controls the Flick Gesture event in the Silverlight Toolkit

I have Pivot Control in my WP7 application, which by its nature responds to left and right clicks to move between the support elements.

Then I want to use the Flick Gesture on UserControl (a small segment of the user interface on my page) for something else.

My custom control handles the event, but also the Pivot control, so it moves on to the next control. I did not understand how to stop the event when user control processes it.

Can I use a flick gesture subcontroller as part of Pivot Control WP7?

eg:

private void glBlinds_Flick(object sender, FlickGestureEventArgs e) { //do stuff e.Handled = true; } 
+4
source share
3 answers

The short answer is not to put a control that supports the gesture on top of another control that also supports the same gesture.

Please see this answer to a very similar question for a slightly longer answer: WP7 Toggle switch in Pivot control?

+4
source

This solution has recently appeared for people who have experienced gesture conflicts on pano / pivot. You can check it out.

Prevent Scrolling Pivot or Panorama Controls

+5
source

I found this to work well for including a slider on a rotation element:

 LayoutRoot Pivot PivotItem Grid Scrollviewer [Content goes here, I use another grid] Slider 

If I skipped the grid and placed the slider inside the scrollviewer, this will not work. I came across this solution as I wanted to maintain the landscape and still have a slider visible / usable.

Perhaps you can place a small segment of the user interface for gestures, similar to where I placed my slider.

0
source

All Articles