wpf-devexpress-dot-xpf-dot-controls-dot-wizard-561f000b.md
Occurs after clicking the Cancel button on a wizard page.
Namespace : DevExpress.Xpf.Controls
Assembly : DevExpress.Xpf.Controls.v25.2.dll
NuGet Package : DevExpress.Wpf.Controls
public event CancelEventHandler Cancel
Public Event Cancel As CancelEventHandler
The Cancel event's data class is CancelEventArgs. The following properties provide information specific to this event:
| Property | Description |
|---|---|
| Cancel | Gets or sets a value indicating whether the event should be canceled. |
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the Cancel event.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.
wpf-create-a-wizard-with-pages-defined-in-xaml/CS/WizardControlExample/MainWindow.xaml#L9
<Grid>
<dxco:Wizard Cancel="Wizard_Cancel" AnimationType="Fade">
<dxco:WelcomeWizardPage HeaderBackground="AliceBlue" Header="Header">
#line 9 "..\..\..\MainWindow.xaml"
((DevExpress.Xpf.Controls.Wizard)(target)).Cancel += new DevExpress.Xpf.Controls.CancelEventHandler(this.Wizard_Cancel);
#ExternalSource("..\..\MainWindow.xaml",9)
AddHandler CType(target,DevExpress.Xpf.Controls.Wizard).Cancel, New DevExpress.Xpf.Controls.CancelEventHandler(AddressOf Me.Wizard_Cancel)
See Also