How to execute the MyButton.Command.Open command before the MyButton.Click event?

A button can use a property Command.Openand an event Click. But the Button.Clickevent is executed before Button.Command.Open. Since the event code Button.Clickand the code Button.Command.Openare related to each other, I need Button.Command.Opento execute first, and then the Button.Clickevent to execute after that. How is this possible? Any solution?

Thank you and sorry, because my English.

+3
source share
1 answer

It looks like you need to find the event that fires before the event click, such as an event PreviewMouseDown, and call the Open implementation there.

+2
source

All Articles