WPF and touch screen problem

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.
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Kelvin McDanielSr. DeveloperCommented:
Clearly, WPF does support touch screens.
Please provide more information on how it's not working and/or what you want to accomplish.
mastiSoftAuthor 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 .
Kelvin McDanielSr. DeveloperCommented:
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.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
mastiSoftAuthor Commented:
thank you , I'll test the solution tomorrow morning and let you know if it is works for me.
mastiSoftAuthor Commented:
Thank you very much Mr.Kelvin. You made my Sunday ))). The solution works as it expected. Have a nice Sunday you too.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.