Closed arnirichard closed 1 year ago
Hi,
You better use CSS for that. Hit-testing wont work on the browser as it is a completely different environment, which Avalonia doesn't know about.
Ok, I tried to add cursor: pointer;
style to all tags. But it does not seem to work.
Did you tried on this sample app?
Yes, it works there even on the same html file. I am on Avalonia 0.10.18 and WebViewControl-Avalonia 2.106.7. I am unable to see any major differences between the projects.
I am getting
System.InvalidOperationException: 'Cannot set OsrEnabled after WebView engine has been loaded'
I have added a very simple project with the html file included.
Just to add, when I load the above project, the hand cursor is not visible over links. However, in the sample app it works.
Setting OSR need to be one of the first things you do in your app
Thanks, I also add to add app.manifest. It works now.
Closing
How do I change cursor type to Hand over links, something like