Skip to main content

RemoveHandler<TEventArgs>(RoutedEvent<TEventArgs>, EventHandler<TEventArgs>) Method

Removes a handler for the specified routed event.

Definition

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

public void RemoveHandler<TEventArgs>(
RoutedEvent<TEventArgs> routedEvent,
EventHandler<TEventArgs>? handler
)
where TEventArgs : RoutedEventArgs

Parameters

  RoutedEvent(TEventArgs)
The routed event.
  EventHandler(TEventArgs)
The handler.

Type Parameters

The type of the event's args.

See Also

Reference

Interactive Class
RemoveHandler Overload
Avalonia.Interactivity Namespace