C
C#9mo ago
Pandetthe

WPF custom click event

Hi, I am wondering if it is possible to create similar event to mouse click, that will be called only for controls that are at the specific coordinates of window.
1 Reply
Lecco
Lecco9mo ago
In WPF, you can achieve this by handling the PreviewMouseLeftButtonDown or PreviewMouseRightButtonDown event at the container level and then determining which control, if any, is at the specific coordinates you are interested in.
Want results from more Discord servers?
Add your server