Skip to main content

RoutedEventRegistry Class

Definition

Assembly:Avalonia.Base
Package:Avalonia
public class RoutedEventRegistry

Inheritance: object -> RoutedEventRegistry

Constructors

NameDescription
RoutedEventRegistryNo summary available.

RoutedEventRegistry Constructor

public RoutedEventRegistry()

Methods

NameDescription
GetAllRegisteredReturns all routed events, that are currently registered in the event registry.
GetRegistered (2 overloads)No summary available.
RegisterRegisters a Avalonia.Interactivity.RoutedEvent on a type.

GetAllRegistered Method

Returns all routed events, that are currently registered in the event registry.

public System.Collections.Generic.IEnumerable<Avalonia.Interactivity.RoutedEvent> GetAllRegistered()

Returns

System.Collections.Generic.IEnumerable<Avalonia.Interactivity.RoutedEvent>

All routed events, that are currently registered in the event registry.

GetRegistered overloads

GetRegistered Method

public System.Collections.Generic.IReadOnlyList<Avalonia.Interactivity.RoutedEvent> GetRegistered<TOwner>()
Type Parameters

TOwner

Returns

System.Collections.Generic.IReadOnlyList<Avalonia.Interactivity.RoutedEvent>

GetRegistered Method

Returns all routed events registered with the provided type. If the type is not found or does not provide any routed events, an empty list is returned.

public System.Collections.Generic.IReadOnlyList<Avalonia.Interactivity.RoutedEvent> GetRegistered(Type type)
Parameters

type Type

The type.

Returns

System.Collections.Generic.IReadOnlyList<Avalonia.Interactivity.RoutedEvent>

All routed events registered with the provided type.

Register Method

Registers a Avalonia.Interactivity.RoutedEvent on a type.

public void Register(Type type, Avalonia.Interactivity.RoutedEvent event)

Parameters

type Type

The type.

event Avalonia.Interactivity.RoutedEvent

The event.

Remarks

You won't usually want to call this method directly, instead use the Avalonia.Interactivity.RoutedEvent.Register<T1, T2>(string,Avalonia.Interactivity.RoutingStrategies) method.

Properties

NameDescription
InstanceGets the Avalonia.Interactivity.RoutedEventRegistry instance.

Instance Property

Gets the Avalonia.Interactivity.RoutedEventRegistry instance.

public Avalonia.Interactivity.RoutedEventRegistry Instance { get; set; }