-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
IsHitTestVisible does not work when disabled #17972
Comments
avalonia:
wpf:
|
Idea: maybe you can get in PointerEventArgs the controls below your pointer and filter yourself if the event is valid or not |
PointerMoved or PointerPressed? PointerMoved is called only if there is mouse movement. It doesn't work separately on click. |
I found a workaround if don't use the button in the background:
|
Describe the bug
Hello! My UserControl has Border on background with Tapped EventTriggerBehavior handling.
On top I show ContentControl.
When I set IsEnabled="false" for ContentControl, it becomes "transparent" for input events. as if I set IsHitTestVisible=false...
Forcing IsHitTestVisible="True" or Focusable="True" does not solve the problem.
As far as I understand, IsEnabled makes IsHitTestVisible false and Focusable false, but I would like to be able to control it
To Reproduce
Expected behavior
I would like disabled elements to not become "transparent" or the ability to control this.
Avalonia version
11.2.3
OS
Windows
Additional context
My ContentControl can be of different shapes, so I can't add an empty border behind it, above the background :(
The text was updated successfully, but these errors were encountered: