Table of Contents

Class RoutedEventRegistry

Namespace
Avalonia.Interactivity
Assembly
Avalonia.Base.dll

Tracks registered RoutedEvents.

public class RoutedEventRegistry
Inheritance
RoutedEventRegistry
Inherited Members

Constructors

RoutedEventRegistry()

public RoutedEventRegistry()

Properties

Instance

Gets the RoutedEventRegistry instance.

public static RoutedEventRegistry Instance { get; }

Property Value

RoutedEventRegistry

Methods

GetAllRegistered()

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

public IEnumerable<RoutedEvent> GetAllRegistered()

Returns

IEnumerable<RoutedEvent>

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

GetRegistered(Type)

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 IReadOnlyList<RoutedEvent> GetRegistered(Type type)

Parameters

type Type

The type.

Returns

IReadOnlyList<RoutedEvent>

All routed events registered with the provided type.

GetRegistered<TOwner>()

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 IReadOnlyList<RoutedEvent> GetRegistered<TOwner>()

Returns

IReadOnlyList<RoutedEvent>

All routed events registered with the provided type.

Type Parameters

TOwner

The type.

Register(Type, RoutedEvent)

Registers a RoutedEvent on a type.

public void Register(Type type, RoutedEvent @event)

Parameters

type Type

The type.

event RoutedEvent

The event.

Remarks

You won't usually want to call this method directly, instead use the Register<TOwner, TEventArgs>(string, RoutingStrategies) method.