WPF and touch screen problem

mastiSoft
mastiSoft used Ask the Experts™
on
Hi. I just found that WFP not working as well as I expected.
My application suppose to work on tablet with touch screen but it works sort off. I found that there is problems with touch screen in WPF.
I try to use the solution I found on Microsoft "DisableWPFTabletSupport" now program crash as soon I touch any button.
I urgently need help.
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Clearly, WPF does support touch screens.
Please provide more information on how it's not working and/or what you want to accomplish.

Author

Commented:
the same application works different if I use mouse for button with event PreviewMouseDown or use my finger on that button.
With mouse the auction I expect just happens with finger first some square appears on button before something happens. The action using mouse takes 1 sec using touch screen 3 sec. For my application this is critical .
Looks like I've located a solution (the original post for this is here).  Essentially, the PreviewTouchDown event does not occur until a finger touches the screen and moves.

To cause the PreviewTouchDown event to occur as soon as a finger touches the screen, set the Stylus.IsPressAndHoldEnabled attached property to false for the element in question.
More technical detail about this is available over at MSDN.

Author

Commented:
thank you , I'll test the solution tomorrow morning and let you know if it is works for me.

Author

Commented:
Thank you very much Mr.Kelvin. You made my Sunday ))). The solution works as it expected. Have a nice Sunday you too.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial