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.

Windows Presentation Foundation
Windows Presentation Foundation
A part of the .NET Framework that provides a unified programming model for building line-of-business desktop applications on Windows.
2,681 questions
C#
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.
10,309 questions
XAML
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.
768 questions
{count} votes

0 additional answers

Sort by: Most helpful