RoutedEvent<TEventArgs>.

AddClassHandler<TTarget>(Action<TTarget, TEventArgs>, RoutingStrategies, bool) Method

Namespace
Avalonia.Interactivity
Containing Type
RoutedEvent<TEventArgs>

Syntax

public IDisposable AddClassHandler<TTarget>(Action<TTarget, TEventArgs> handler, RoutingStrategies routes = Direct | Bubble, bool handledEventsToo = false) 
    where TTarget : class, IInteractive

Type Parameters

Name Description
TTarget

Parameters

Name Type Description
handler Action<TTarget, TEventArgs>
routes RoutingStrategies
handledEventsToo bool

Return Value

Type Description
IDisposable