Cancel Closing

Oct 23, 2013 at 11:48 AM
Hey,

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?

Regards

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