Skip to main content

CancelRoutedEventArgs Class

Definition​

Assembly:Avalonia.Base
Package:Avalonia

Provides state information and data specific to a cancelable routed event.

public class CancelRoutedEventArgs

Inheritance: EventArgs -> RoutedEventArgs -> CancelRoutedEventArgs

Constructors​

NameDescription
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​

NameDescription
CancelGets or sets a value indicating whether the routed event should be canceled.
HandledGets or sets a value indicating whether the routed event has already been handled. Inherited from RoutedEventArgs.
RouteGets or sets the routing strategy (direct, bubbling, or tunneling) of the routed event. Inherited from RoutedEventArgs.
RoutedEventGets or sets the routed event associated with these event args. Inherited from RoutedEventArgs.
SourceGets 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; }