Friday, 15 January 2010

c# - Prevent Click events on child view while swiping(flicking) parent. WinPhone8.1 -


I have a canvas with Suchibak inside I list set event Hँdlr for the event click each child element of the box the swipe is eventhandlers set on canvas I

  ManipulationStarted = "canvas_ManipulationStarted" ManipulationDelta = "canvas_ManipulationDelta" ManipulationCompleted = "canvas_ManipulationCompleted"  

work For my code to accept one thing, it activates the eventhandler before ManipulationCompleted eventhandler.

But in the same time scroll in the example listbox and click not to fire the event.

to handle the manipulation

So basically what I need the same kind of events

If this condition is true:

  private void canvas Anbekshn Dilta (object sender, Manipulation Deltaavent Aarjis e) {e Deltamanlipreshn. Translation.x & gt; [Some value] ....}  

I do not mind if this listbox is not in the inside or need to deactivate click event firing on any child element of the canvas. is.

If you do not want to fire you click Handlers why install?

Press went torched the pointer, so it is no way to say that you want the user clicks to begin a manipulation. If you want to differentiate between "click" and swipe, then you have to decide on the basis of either the latter.

Instead of clicking, you can handle the tap gesture with the event of manipulation, because the tap on the pointer is released after the fire, the manipulation system will set it to fire, if the user will tap and release at one place The user adds and the cursor will press.

See for more information. / P>


No comments:

Post a Comment