CancelRoutedEventArgs Class
Provides event arguments for a cancelable routed event.
public class CancelRoutedEventArgs : RoutedEventArgs
- Inheritance:
- object EventArgs RoutedEventArgs object
- Derived:
- BarMenuEventArgs RibbonQuickAccessToolBarItemAddingEventArgs AdvancedTabItemEventArgs DockingWindowEventArgs DockingWindowsEventArgs PropertyModelChildChangeEventArgs PropertyModelValueChangeEventArgs TreeListBoxItemEventArgs TreeListViewColumnEventArgs InfoBarClosingEventArgs EditActionEventArgs EditorSnapshotChangingEventArgs UserPromptResponseEventArgs TaskCardEventArgs TaskColumnEventArgs WizardSelectedPageChangeEventArgs
Constructors
CancelRoutedEventArgs()
Initializes an instance of the class.
public CancelRoutedEventArgs()
CancelRoutedEventArgs(bool)
Initializes an instance of the class.
public CancelRoutedEventArgs(bool cancel)
| Parameter | Type | Description |
|---|---|---|
| cancel | bool |
|
CancelRoutedEventArgs(bool, RoutedEvent?)
Initializes an instance of the class.
public CancelRoutedEventArgs(bool cancel, RoutedEvent? routedEvent)
| Parameter | Type | Description |
|---|---|---|
| cancel | bool |
|
| routedEvent | RoutedEvent | The routed event identifier for this event arguments instance. |
CancelRoutedEventArgs(bool, RoutedEvent?, object?)
Initializes an instance of the class.
public CancelRoutedEventArgs(bool cancel, RoutedEvent? routedEvent, object? source)
| Parameter | Type | Description |
|---|---|---|
| cancel | bool |
|
| routedEvent | RoutedEvent | The routed event identifier for this event arguments instance. |
| source | object | An alternate source that will be reported when the event is handled. |
CancelRoutedEventArgs(RoutedEvent?)
Initializes an instance of the class.
public CancelRoutedEventArgs(RoutedEvent? routedEvent)
| Parameter | Type | Description |
|---|---|---|
| routedEvent | RoutedEvent | The routed event identifier for this event arguments instance. |
CancelRoutedEventArgs(RoutedEvent?, object?)
Initializes an instance of the class.
public CancelRoutedEventArgs(RoutedEvent? routedEvent, object? source)
| Parameter | Type | Description |
|---|---|---|
| routedEvent | RoutedEvent | The routed event identifier for this event arguments instance. |
| source | object | An alternate source that will be reported when the event is handled. |
Properties
Cancel
Indicates whether the event should be canceled.
public bool Cancel { get; set; }
Property Value
- bool:
trueto cancel the event; otherwise,false. The default value isfalse.
Inherited Members
- EventArgs.Empty
- object.GetType()
- object.MemberwiseClone()
- object.ToString()
- object.Equals(object)
- object.Equals(object, object)
- object.ReferenceEquals(object, object)
- object.GetHashCode()