I am working on an application which should run on a custom desktop created by the
CreateDesktop Win32 method. The desktop switching and the custom desktop works well. My application uses WPF 4 with C# and should work on a Win7 based notebook with
touchscreen. When running on the normal desktop everything works fine, but when I try to run it on my custom desktop the touch screen does something strange.
When I try to click a button using touch, the button visually responds (so the buttons background will be light blue as normally under Vista/7), but the click event never occurs, if I click the button using the mouse
everything works fine.
> I did some tests and got the following results:
[WPF and WinForms] Both mouse and touch events work well on the normal desktop in every case
[WPF] Touch events DO NOT WORK on the custom desktop (for eaxmple TouchDown never fires)
[WPF] Mouse events with the mouse work well on the custom desktop (Click with mouse)
[WPF] Mouse events with touchscreen DO NOT WORK
on the custom desktop (Click/Tap with finger) [WinForms] Mouse events with the mouse work well on the custom desktop (Click with mouse)
[WinForms] Mouse events with touchscreen WORK WELL on the custom desktop (Click/Tap with finger)
> I have also tried some other apps on the custom desktop:
Paint works well, also with multi-touch. Touch Keyboard works well. Windows can b
View Complete Post