EventRoute Class

Summary

Holds the route for a routed event and supports raising an event on that route.
Namespace
Avalonia.Interactivity
Interfaces
  • IDisposable
Base Types
  • object
graph BT Type-->Base0["object"] Type-.->Interface0["IDisposable"] Type["EventRoute"] class Type type-node

Syntax

public class EventRoute : IDisposable

Constructors

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

Properties

Name Value Summary
HasHandlers bool
Gets a value indicating whether the route has any handlers.

Methods

Name Value Summary
Add(IInteractive, Delegate, RoutingStrategies, bool, Action<Delegate, object, RoutedEventArgs>?) void
Adds a handler to the route.
AddClassHandler(IInteractive) void
Adds a class handler to the route.
Dispose() void
Disposes of the event route.
RaiseEvent(IInteractive, RoutedEventArgs) void
Raises an event along the route.