Skip to main content

EventRoute Class

Holds the route for a routed event and supports raising an event on that route.

Definition​

Namespace: Avalonia.Interactivity
Assembly: Avalonia.Base (in Avalonia.Base.dll)

public class EventRoute : IDisposable
View Source
InheritanceObject → EventRoute
ImplementsIDisposable

Constructors​

EventRoute(RoutedEvent)Initializes a new instance of the RoutedEvent class.

Properties​

HasHandlersGets a value indicating whether the route has any handlers.

Methods​

Add(Interactive, Delegate, RoutingStrategies, Boolean, Action(Delegate, Object, RoutedEventArgs))Adds a handler to the route.
AddClassHandler(Interactive)Adds a class handler to the route.
Dispose()Disposes of the event route.
Equals(Object)Determines whether the specified object is equal to the current object.
(Inherited from Object)
Finalize()Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
GetHashCode()Serves as the default hash function.
(Inherited from Object)
GetType()Gets the Type of the current instance.
(Inherited from Object)
MemberwiseClone()Creates a shallow copy of the current Object.
(Inherited from Object)
RaiseEvent(Interactive, RoutedEventArgs)Raises an event along the route.
ToString()Returns a string that represents the current object.
(Inherited from Object)

See Also​

Reference​

Avalonia.Interactivity Namespace