Replies: 2 comments 2 replies
-
While debugging, i came across this exception System.InvalidCastException Message=Interface not registered. When this exception comes, pen and tablet devices are not registering. Due to this, touch input is not working. When i added the "Switch.System.Windows.Input.Stylus.EnablePointerSupport": true to the runtimeconfig file, exception went away but scroll not working. |
Beta Was this translation helpful? Give feedback.
0 replies
-
I believe the issue #2393 looks same. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
We have a WPF application on .net framework 4.7.2, which used to work for touch and stylus inputs. After we migrate the application to .net 6.0, touch and stylus inputs are not working on UIElements. After searching in other forums, i came across to keep "Switch.System.Windows.Input.Stylus.EnablePointerSupport": true in runtimeconfig.template.json file to make touch input work.
{
"configProperties": {
"Switch.System.Windows.Input.Stylus.EnablePointerSupport": true
}
}
After adding this, touch input is working but not touch move or scroll.
Anybody come across this issue in WPF .net 6.0 appliation. Am i missing any configuration setting after using upgrade assistant tool to migrate from framework to .net 6. Any help would be appreciated.
Beta Was this translation helpful? Give feedback.
All reactions