Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can execute MyButton.Command.Open before MyButton.Click event?

A button can use Command.Open property and Click event. But Button.Click event executes before Button.Command.Open. Since my Button.Click event code and Button.Command.Open code is connected with each other, I need Button.Command.Open to execute first and then Button.Click event to execute after that. How cab this be possible? Any solution?

Thanks and sorry because my English.

like image 435
Parham.D Avatar asked Jun 19 '26 19:06

Parham.D


1 Answers

It sounds like you need to find an event that fires before the click event, like the PreviewMouseDown event, and call your implementation of Open there.

like image 54
mtijn Avatar answered Jun 21 '26 10:06

mtijn



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!