Provides event arguments for a cancelable routed event.
- Inheritance:
-
object
Event
Args RoutedEvent objectArgs
- Derived:
-
Bar
Menu RibbonEvent Args Quick AdvancedAccess Tool Bar Item Adding Event Args Tab DockingItem Event Args Window DockingEvent Args Windows PropertyEvent Args Model PropertyChild Change Event Args Model TreeValue Change Event Args List TreeBox Item Event Args List InfoView Column Event Args Bar EditClosing Event Args Action EditorEvent Args Snapshot UserChanging Event Args Prompt TaskResponse Event Args Card TaskEvent Args Column WizardEvent Args Selected Page Change Event Args
Constructors
CancelRoutedEventArgs()
Initializes a new instance of the CancelRoutedEventArgs
class with the Cancel property set to false
.
CancelRoutedEventArgs(bool)
Initializes a new instance of the CancelRoutedEventArgs
class with the Cancel property set to the given value.
Parameter | Type | Description |
---|---|---|
cancel | bool |
|
CancelRoutedEventArgs(bool, RoutedEvent)
Initializes a new instance of the CancelRoutedEventArgs
class with the Cancel property set to the given value.
Parameter | Type | Description |
---|---|---|
cancel | bool |
|
routedEvent | Routed |
The routed event identifier for this event arguments instance. |
CancelRoutedEventArgs(bool, RoutedEvent, object)
Initializes a new instance of the CancelRoutedEventArgs
class with the Cancel property set to the given value.
Parameter | Type | Description |
---|---|---|
cancel | bool |
|
routedEvent | Routed |
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 a new instance of the CancelRoutedEventArgs
class with the Cancel property set to false
.
Parameter | Type | Description |
---|---|---|
routedEvent | Routed |
The routed event identifier for this event arguments instance. |
CancelRoutedEventArgs(RoutedEvent, object)
Initializes a new instance of the CancelRoutedEventArgs
class with the Cancel property set to false
.
Parameter | Type | Description |
---|---|---|
routedEvent | Routed |
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
Gets or sets a value indicating whether the event should be canceled.
Property Value
- bool:
true
to cancel the event; otherwise,false
.