Skip to main content

RoutedEventArgs Class

Definition

Assembly:Avalonia.Base
Package:Avalonia

Provides state information and data specific to a routed event.

public class RoutedEventArgs

Constructors

NameDescription
RoutedEventArgs (3 overloads)Initializes a new instance of the Avalonia.Interactivity.RoutedEventArgs class.

RoutedEventArgs overloads

RoutedEventArgs Constructor

Initializes a new instance of the Avalonia.Interactivity.RoutedEventArgs class.

public RoutedEventArgs()

RoutedEventArgs Constructor

Initializes a new instance of the Avalonia.Interactivity.RoutedEventArgs class.

public RoutedEventArgs(Avalonia.Interactivity.RoutedEvent routedEvent)
Parameters

routedEvent Avalonia.Interactivity.RoutedEvent

The routed event associated with these event args.

RoutedEventArgs Constructor

Initializes a new instance of the Avalonia.Interactivity.RoutedEventArgs class.

public RoutedEventArgs(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
HandledGets or sets a value indicating whether the routed event has already been handled.
RouteGets or sets the routing strategy (direct, bubbling, or tunneling) of the routed event.
RoutedEventGets or sets the routed event associated with these event args.
SourceGets or sets the source object that raised the routed event.

Handled Property

Gets or sets a value indicating whether the routed event has already been handled.

public bool Handled { get; set; }

Remarks

Once handled, a routed event should be ignored.

Route Property

Gets or sets the routing strategy (direct, bubbling, or tunneling) of the routed event.

public Avalonia.Interactivity.RoutingStrategies Route { get; set; }

RoutedEvent Property

Gets or sets the routed event associated with these event args.

public Avalonia.Interactivity.RoutedEvent RoutedEvent { get; set; }

Source Property

Gets or sets the source object that raised the routed event.

public object Source { get; set; }