How to cancel a cancel?

Wizard for WPF Forum

Posted 14 years ago by Crile Carvey
Version: 9.2.0515
Avatar
Looks like we can trap the cancel event via wizard_Cancel, but how to cancel the cancel?

I want to do something like this:

private void wizard_Cancel(object sender, RoutedEventArgs e)
{
if (AreYouSure())
{
e.Cancel = true;
}
}

Comments (1)

Posted 14 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
It just notifies you of the Cancel press right now. If you want to potentially cancel it, you'd have to turn off that option to auto-close the window on cancel and instead do window.Close() in your Cancel event handler when appropriate.


Actipro Software Support

The latest build of this product (v24.1.2) was released 10 days ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.