RoutedEventRegistry Class
Definition
Tracks registered Avalonia.Interactivity.RoutedEvents.
public class RoutedEventRegistry
Constructors
| Name | Description |
|---|---|
| RoutedEventRegistry | No summary available. |
RoutedEventRegistry Constructor
public RoutedEventRegistry()
Methods
| Name | Description |
|---|---|
| GetAllRegistered | Returns all routed events, that are currently registered in the event registry. |
| GetRegistered (2 overloads) | No summary available. |
| Register | Registers 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
| Name | Description |
|---|---|
| Instance | Gets the Avalonia.Interactivity.RoutedEventRegistry instance. |
Instance Property
Gets the Avalonia.Interactivity.RoutedEventRegistry instance.
public Avalonia.Interactivity.RoutedEventRegistry Instance { get; set; }