CancelRoutedEventArgs Class
Definition
Provides state information and data specific to a cancelable routed event.
public class CancelRoutedEventArgs
Constructors
| Name | Description |
|---|---|
| CancelRoutedEventArgs (3 overloads) | Initializes a new instance of the Avalonia.Interactivity.CancelRoutedEventArgs class. |
CancelRoutedEventArgs overloads
CancelRoutedEventArgs Constructor
Initializes a new instance of the Avalonia.Interactivity.CancelRoutedEventArgs class.
public CancelRoutedEventArgs()
CancelRoutedEventArgs Constructor
Initializes a new instance of the Avalonia.Interactivity.CancelRoutedEventArgs class.
public CancelRoutedEventArgs(Avalonia.Interactivity.RoutedEvent routedEvent)
Parameters
routedEvent Avalonia.Interactivity.RoutedEvent
The routed event associated with these event args.
CancelRoutedEventArgs Constructor
Initializes a new instance of the Avalonia.Interactivity.CancelRoutedEventArgs class.
public CancelRoutedEventArgs(Avalonia.Interactivity.RoutedEvent routedEvent, object source)
Parameters
routedEvent Avalonia.Interactivity.RoutedEvent
The routed event associated with these event args.
source object
The source object that raised the routed event.
Properties
| Name | Description |
|---|---|
| Cancel | Gets or sets a value indicating whether the routed event should be canceled. |
| Handled | Gets or sets a value indicating whether the routed event has already been handled. Inherited from RoutedEventArgs. |
| Route | Gets or sets the routing strategy (direct, bubbling, or tunneling) of the routed event. Inherited from RoutedEventArgs. |
| RoutedEvent | Gets or sets the routed event associated with these event args. Inherited from RoutedEventArgs. |
| Source | Gets or sets the source object that raised the routed event. Inherited from RoutedEventArgs. |
Cancel Property
Gets or sets a value indicating whether the routed event should be canceled.
public bool Cancel { get; set; }