dotnet / dotnet/wpf

WPF touch function does not work.

Open
#7,069 33 comments 1 reaction 0 assignees View on GitHub
:construction: work in progress Investigate
Dominant language
C#
Stars
7.7k
Forks
1.3k
Avg merge
1d 11h
Merged PRs (30d)
61

Description

* .NET Core Version: ALL
* Windows version: Windows 10 Version 21H2
* Does the bug reproduce also in WPF for .NET Framework 4.8?: Yes



**Problem description:**
Sometimes, I met a problem that wpf touch function does not work. I have no idea what's wrong with my computer.
I make a screen recording about this bug .
**Actual behavior:**
I summarize some tests:
1. All of the wpf touch function is abnormal even if I restart wpf application. (Button click with touch, inkcanvas touch...).
2. Disable HID-compliant touch screen, then enable it, still does not work.
3. Change touch device(monitor) and restart application still does not work.
4. Change another account(B user) and don't sign out (A current user) Windows, B user's wpf touch is normal,
and switch to (A user) that wpf touch still don't work.
5. We doubt there are something wrong with Wisp, because I use other app that is not wpf app, it use wisp and also have the similar question.
6. If I use "EnablePointerSupport", touch will be normal. But there are some reason I cannot use "EnablePointerSupport". I write a easy sample code to reproduce as attach video.
**Expected behavior:**
Touch can work well.
**Minimal repro:**
When this error occurs, it can always be reproduced as long as Windows is not restarted.

https://user-images.githubusercontent.com/113828370/190896784-37151d1a-f6f1-4448-beeb-59d9798ac2bd.mp4

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.