WPF4 pushpin responds to mouse clicks but not touch

Mar 25, 2010 at 5:16 PM

Hi Josh, I was working with the WPF4 version of the map and noticed that the pushpin doesn't respond to touch events.  However, it does perform the "fly to" when clicked with the mouse.  Any chance this is a bug or am I missing something?

Great talk at MIX, the presentation software is very innovative!



Mar 26, 2010 at 6:15 AM

Yes, this is a known issue that the WPF 4 buttons do not respond well to touch. It might be because the touch event bubbles up to the map (the native WPF 4 button ignore it), the map handles it, and the touch event is never promoted to a mouse event, which the button is waiting for. Sometimes it works though, so I'm not sure.

When the Surface Toolkit for Windows Touch is released, I will update the code to use SurfaceButton, which is designed for touch. The native WPF 4 buttons (when the touch events are promoted to mouse events) will click when the first touch is released, even if there is a second finger holding it down.

Mar 26, 2010 at 6:21 AM

Also thanks for your comment about MIX! I'm glad you liked it.