RoutedEvent<TEventArgs>.

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

Namespace
Avalonia.Interactivity
Containing Type
RoutedEvent<TEventArgs>

Syntax

[Obsolete("Use overload taking Action<TTarget, TEventArgs>.")]
public IDisposable AddClassHandler<TTarget>(Func<TTarget, Action<TEventArgs>> handler, RoutingStrategies routes = Direct | Bubble, bool handledEventsToo = false) 
    where TTarget : class, IInteractive

Attributes

Type Description
ObsoleteAttribute

Type Parameters

Name Description
TTarget

Parameters

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

Return Value

Type Description
IDisposable