Skip to main content

AddClassHandler Method

Definition

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

public IDisposable AddClassHandler(
Type targetType,
EventHandler<RoutedEventArgs> handler,
RoutingStrategies routes = RoutingStrategies.Direct|RoutingStrategies.Bubble,
bool handledEventsToo = false
)

Parameters

  Type
 
  EventHandler(RoutedEventArgs)
 
  RoutingStrategies  (Optional)
 
  Boolean  (Optional)
 

Return Value

IDisposable

See Also

Reference

RoutedEvent Class
Avalonia.Interactivity Namespace