Why do mouse events get promoted beside Touch events?

Up vote 0 down vote favorite share g+ share fb share tw.

I read the article of JoshB here but, the mouse events keep getting triggered, although I did e. Handled = true; Here is what JoshB says: The touch event flow with no manipulations. The touch events are unhandled, so WPF promotes the event to the mouse equivalent So, I tried in my code to mark the event as handled, but WPF still promotes mouse events once I touch the _touchSurface which is InkSurface Here is my code: ( I am not using Microsoft Surface SDK ) _touchSurface.

IsManipulationEnabled = true; _touchSurface. TouchDown += new EventHandler(touchDown); _touchSurface. TouchMove += new EventHandler(touchMove); _touchSurface.

TouchEnter += new EventHandler(touchEnter); _touchSurface. TouchLeave += new EventHandler(touchLeave); _touchSurface. ManipulationDelta += new EventHandler(ManipulationDelta); _touchSurface.

ManipulationStarting += new EventHandler(ManipulationStarting); _touchSurface. ManipulationCompleted += new EventHandler(ManipulationCompleted); void touchDown(object sender, TouchEventArgs e) { e. Handled = true; } void touchMove(object sender, TouchEventArgs e) { e.

Handled = true; } void touchLeave(object sender, TouchEventArgs e) { e. Handled = true; } void ManipulationDelta(object sender, ManipulationDeltaEventArgs e) { e. Handled = true; } void ManipulationStarting(object sender, ManipulationStartingEventArgs e) { e.

Handled = true; } void ManipulationCompleted(object sender, ManipulationCompletedEventArgs e) { e. Handled = true; } .net wpf touch multitouch microsoft-surface link|improve this question edited Mar 14 at 13:26H.B.43k61645 asked Mar 13 at 15:39Samir Sabri37928 71% accept rate.

Have you tried PreviewTouchDown -Up, etc.? – Silvermind Mar 13 at 18:18 Yes, I tried PreviewTouchDown& PreviewTouchMove, but WPF keep promoting mouse events too .. – Samir Sabri Mar 14 at 6:57.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions