Skip to main content

AddHandler(RoutedEvent, Delegate, RoutingStrategies, Boolean) Method

Adds a handler for the specified routed event.

Definition​

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

public void AddHandler(
RoutedEvent routedEvent,
Delegate handler,
RoutingStrategies routes = RoutingStrategies.Direct|RoutingStrategies.Bubble,
bool handledEventsToo = false
)

Parameters​

  RoutedEvent
The routed event.
  Delegate
The handler.
  RoutingStrategies  (Optional)
The routing strategies to listen to.
  Boolean  (Optional)
Whether handled events should also be listened for.

See Also​

Reference​

Interactive Class
AddHandler Overload
Avalonia.Interactivity Namespace