This project is read-only.

MouseTouchDevice Selection

Feb 13, 2013 at 4:38 PM
When using MouseTouchDevice, the touch events mostly work except for the fact that I'm not able to select anything. If I use my mouse to click on a button or select a listbox item it does nothing. But when I flick scroll with my mouse it does the inertia scrolling fine. Am I doing something wrong?
Feb 15, 2013 at 6:51 PM
The default textbox control does not listen to touch events; therefore, when you are using MouseTouchDevice, the touch events are ignored. MouseTouchDevice (and the other variants in Blake.NUI) do not promote unhandled events to mouse events like the built in TouchDevice. This also applies if you use MouseTouchDevice with other default WPF controls like Button or Listbox rather than the touch-enhanced versions in the Surface SDK. (The exception for Listbox scrolling is the one oddity out of the default WPF controls.)

I'd recommend using the Surface SDK controls and seeing how that works for you.