Table of Contents

Class RoutedEventArgs

Namespace
Avalonia.Interactivity
Assembly
Avalonia.Base.dll

Provides state information and data specific to a routed event.

public class RoutedEventArgs : EventArgs
Inheritance
RoutedEventArgs
Derived
Inherited Members

Constructors

RoutedEventArgs()

Initializes a new instance of the RoutedEventArgs class.

public RoutedEventArgs()

RoutedEventArgs(RoutedEvent?)

Initializes a new instance of the RoutedEventArgs class.

public RoutedEventArgs(RoutedEvent? routedEvent)

Parameters

routedEvent RoutedEvent

The routed event associated with these event args.

RoutedEventArgs(RoutedEvent?, object?)

Initializes a new instance of the RoutedEventArgs class.

public RoutedEventArgs(RoutedEvent? routedEvent, object? source)

Parameters

routedEvent RoutedEvent

The routed event associated with these event args.

source object

The source object that raised the routed event.

Properties

Handled

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

public bool Handled { get; set; }

Property Value

bool

Remarks

Once handled, a routed event should be ignored.

Route

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

public RoutingStrategies Route { get; set; }

Property Value

RoutingStrategies

RoutedEvent

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

public RoutedEvent? RoutedEvent { get; set; }

Property Value

RoutedEvent

Source

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

public object? Source { get; set; }

Property Value

object