You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For a full stack WPF application with multiple projects the DeviceId.Wmi library for some reason gives touch scroll issues when used.
Adding the library as Nuget package to my Infrastructure layer project would make my WPF UI layer project give touch scroll issues. The touch still works but the scrollviewer in particular could not easily be scrolled anymore (PanningMode is set to Both).
I have created a simple project where the issue is active: TestTouchScroll-issue.zip. If you comment the lines in the MainWindow.xaml.cs - line 15 to 18 the problem is fixed. So it has to do something with the .AddMotherboardSerialNumber() or .AddMachineGuid() method that is called. I also found out that removing the MotherboardSerialNumber method fixes the issue. (the MachineGuid method doesn't use the Wmi library, i suspect the problem to lie in the Wmi library).
Hopefully this information is useful enough and feel free to ask for more information if required! Thank you in advance! Great library never the less!
Cheers, Pepijn
The text was updated successfully, but these errors were encountered:
Thank you for the quick response. The workaround (adding _ = Tablet.TabletDevices; to the ) does work for the TestTouchScroll project but unfortunately not for the full stack application I am working on. The startup there is more complex (using async). For now I will not use the MotherboardSerialNumber anymore to work around this issue!
For a full stack WPF application with multiple projects the
DeviceId.Wmi
library for some reason gives touch scroll issues when used.Adding the library as Nuget package to my Infrastructure layer project would make my WPF UI layer project give touch scroll issues. The touch still works but the scrollviewer in particular could not easily be scrolled anymore (
PanningMode
is set toBoth
).I have created a simple project where the issue is active: TestTouchScroll-issue.zip. If you comment the lines in the
MainWindow.xaml.cs
- line 15 to 18 the problem is fixed. So it has to do something with the.AddMotherboardSerialNumber()
or.AddMachineGuid()
method that is called. I also found out that removing the MotherboardSerialNumber method fixes the issue. (the MachineGuid method doesn't use the Wmi library, i suspect the problem to lie in the Wmi library).Hopefully this information is useful enough and feel free to ask for more information if required! Thank you in advance! Great library never the less!
Cheers, Pepijn
The text was updated successfully, but these errors were encountered: