Button command execution issue with touch | WPF | MVVM | Windows 10

JustHPS 101 Reputation points
2021-04-09T13:43:27.373+00:00

I am using a simple button in a WPF application running on Windows 10 using MVVM pattern to execute action on click with command binding using touch monitor. What actually happen is sometimes the first time command action is not executing on touch and it is working correctly after second touch onward.

I have verified that the TouchDown and TouchUp event is working correctly all the time (first and onward).

With mouse everything is working well.

The button is present in a Dialog box, I was wondering if it could be associated with any kind of focus management but can't find out ? Please help!

Best regards, HPS.

Developer technologies | Windows Presentation Foundation
Developer technologies | XAML
Developer technologies | XAML
A language based on Extensible Markup Language (XML) that enables developers to specify a hierarchy of objects with a set of properties and logic.
Developer technologies | C#
Developer technologies | C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
{count} votes

Answer accepted by question author
  1. JustHPS 101 Reputation points
    2021-08-03T12:50:28.557+00:00

    In my case the problem was RealTimeStylus for WPF Applications that should be disabled on Windows 7.

    Please check here for details: https://learn.microsoft.com/en-us/dotnet/desktop/wpf/advanced/disable-the-realtimestylus-for-wpf-applications?view=netframeworkdesktop-4.8.

    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.