Interactive.

AddHandler(RoutedEvent, Delegate, RoutingStrategies, bool) Method

Summary

Adds a handler for the specified routed event.
Namespace
Avalonia.Interactivity
Containing Type
Interactive

Syntax

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

Parameters

Name Type Description
routedEvent RoutedEvent The routed event.
handler Delegate The handler.
routes RoutingStrategies The routing strategies to listen to.
handledEventsToo bool Whether handled events should also be listened for.

Return Value

Type Description
IDisposable A disposable that terminates the event subscription.