Cancel Closing

Oct 23, 2013 at 12:48 PM

I have a Closing Event, where I want to stop the Closing of the View.
But if I set the CancelEventArgs on e.Cancel = false, the View still close.
public void WindowClosing(object sender, System.ComponentModel.CancelEventArgs e)
            if (!this.CurrTicket.SmthHasChanged)
                e.Cancel = false;
I looked in the Documentation and in the Discussions, but I did not finde any solution.
Is there any way to stop the Close?


Sean Roddis
Oct 23, 2013 at 12:49 PM
To cancel closing, you need to set it to true...
e.Cancel = true;