Pointer Events Issue, possible bug ? #15802
Unanswered
LaurentInSeattle
asked this question in
Q&A
Replies: 1 comment 2 replies
-
Related: #14502 (comment) AFAIK, this is just how it works in Avalonia because of how pointer capture works. Not sure if this is due to some temporary limitation or if this is expected forever, so the team would need to comment. Reminder that Avalonia APIs cannot be 1:1 with WPF everywhere because of varying levels of platform capabilities. |
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
-
Hi all,
I am listening to pointer events on a Rectangle shape using the following code:
this.eventingRectangle.PointerPressed += this.OnPointerPressed; this.eventingRectangle.PointerReleased += this.OnPointerReleased; this.eventingRectangle.PointerEntered += this.OnPointerEnter; this.eventingRectangle.PointerExited += this.OnPointerLeave;
For now, the corresponding code is just a basic Debug.WriteLine and I can see the following, when I move the mouse around:
WPF was giving me the proper sequence: Enter, Down, Leave, Up.
Any thing I could have done wrong ???
Any workaround ?
This is on Win 10 / Visual Studio 2022 / .Net 8 with Avalonia 11.0.10 - Not checked on any other platform.
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions