PointerPressed event is not always called in a custom control | Custom Control | Events #17227
Unanswered
BoTech-Development
asked this question in
Q&A
Replies: 1 comment
-
I'm pretty confident that this specific scenario works as intended and isn't an issue. At least there's far too much to sift through (a whole app). Be mindful for hit testing, you need to have a Alternatively, you can implement public class PaintControl : Control, ICustomHitTest
{
public bool HitTest(Point point) => true;
...
} If this doesn't work, please create a minimal repro. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Describe the bug
My Bug/Question: How can I program a custom control that has mouse events that are called at the right time.
To Reproduce
Expected behavior
Avalonia version
11.1.3
OS
Windows
Additional context
I'm not entirely sure if the Avalonia version is correct, as I haven't worked on ISim for a while and I don't have a device available with which I could check this.
Beta Was this translation helpful? Give feedback.
All reactions