Back to Devexpress

Wizard.Cancel Event

wpf-devexpress-dot-xpf-dot-controls-dot-wizard-561f000b.md

latest3.3 KB
Original Source

Wizard.Cancel Event

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

Declaration

csharp
public event CancelEventHandler Cancel
vb
Public Event Cancel As CancelEventHandler

Event Data

The Cancel event's data class is CancelEventArgs. The following properties provide information specific to this event:

PropertyDescription
CancelGets 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

xml
<Grid>
    <dxco:Wizard Cancel="Wizard_Cancel" AnimationType="Fade">
        <dxco:WelcomeWizardPage HeaderBackground="AliceBlue" Header="Header">

wpf-create-a-wizard-with-pages-defined-in-xaml/CS/WizardControlExample/obj/Debug/net8.0-windows/MainWindow.g.cs#L85

csharp
#line 9 "..\..\..\MainWindow.xaml"
((DevExpress.Xpf.Controls.Wizard)(target)).Cancel += new DevExpress.Xpf.Controls.CancelEventHandler(this.Wizard_Cancel);

wpf-create-a-wizard-with-pages-defined-in-xaml/VB/WizardControlExample/obj.NetFX/Debug/MainWindow.g.vb#L85

vb
#ExternalSource("..\..\MainWindow.xaml",9)
AddHandler CType(target,DevExpress.Xpf.Controls.Wizard).Cancel, New DevExpress.Xpf.Controls.CancelEventHandler(AddressOf Me.Wizard_Cancel)

See Also

IsButtonCancel

Wizard Class

Wizard Members

DevExpress.Xpf.Controls Namespace