Buttons and OnMouseButtonDown - firing events.
Posted: 05 Oct 2013, 23:03
It seems like Buttons do not fire the OnMouseButtonDown event, while Textblocks and labels do. Is this by design?
Thanks,
JC
Thanks,
JC
Welcome to our official discussion site. You’ll find topics on features, bugs, development, and general support here
https://www.noesisengine.com/forums/
So you would need to attach to the PreviewMouseLeftButtonDown event if you want to be notified when user is trying to click the button.This implementation marks the MouseLeftButtonDown event as handled by setting the Handled property of the event data to true when ClickMode is not set to Hover. To respond to the MouseLeftButtonDown event, attach an event handler to the PreviewMouseLeftButtonDown event.