Posts

WPF Slider Not Working with Touch Screen

We hit a problem yesterday when we were testing one of our Microsoft WPF applications on a touch screen set-up, one of the app’s sliders wasn’t correctly responding to touch events and it couldn’t be dragged properly using the touch screen even though mouse control still worked perfectly.

 

It turns out that there is a bug in the WPF software framework related to touch that needs to be programmed around. The problem was fixed by following the instructions detailed here:

 

http://nui.joshland.org/2010/04/why-wont-wpf-controls-work-with-touch.html

 

Many thanks to JOSHB for posting the workaround!