I want to have the same command when I click the “Cancel” button or when I close the window (ALT+F4 or click the x).
The problem is the command will eventually close the window that is in the “closing” mode which is denied – I can’t close a window that is closing.
How can I distinguish the mode “IsClosing” in the window? It doesnt have this bool property …
I want to have the same command when I click the Cancel button or
Share
I’m not entirely sure what you’re asking for. If you provide some code to show what you’re trying to do now, I could probably help you better.
In the meantime, this question seems to be asking something similar to yours. Why don’t you check this out and see if it helps?
WPF window on closing