|
|
@ -28,21 +28,6 @@ namespace Avalonia.Interactivity |
|
|
RoutingStrategies routes = RoutingStrategies.Direct | RoutingStrategies.Bubble, |
|
|
RoutingStrategies routes = RoutingStrategies.Direct | RoutingStrategies.Bubble, |
|
|
bool handledEventsToo = false); |
|
|
bool handledEventsToo = false); |
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Adds a handler for the specified routed event.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <typeparam name="TEventArgs">The type of the event's args.</typeparam>
|
|
|
|
|
|
/// <param name="routedEvent">The routed event.</param>
|
|
|
|
|
|
/// <param name="handler">The handler.</param>
|
|
|
|
|
|
/// <param name="routes">The routing strategies to listen to.</param>
|
|
|
|
|
|
/// <param name="handledEventsToo">Whether handled events should also be listened for.</param>
|
|
|
|
|
|
/// <returns>A disposable that terminates the event subscription.</returns>
|
|
|
|
|
|
void AddHandler<TEventArgs>( |
|
|
|
|
|
RoutedEvent<TEventArgs> routedEvent, |
|
|
|
|
|
EventHandler<TEventArgs> handler, |
|
|
|
|
|
RoutingStrategies routes = RoutingStrategies.Direct | RoutingStrategies.Bubble, |
|
|
|
|
|
bool handledEventsToo = false) where TEventArgs : RoutedEventArgs; |
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
/// <summary>
|
|
|
/// Removes a handler for the specified routed event.
|
|
|
/// Removes a handler for the specified routed event.
|
|
|
/// </summary>
|
|
|
/// </summary>
|
|
|
@ -50,15 +35,6 @@ namespace Avalonia.Interactivity |
|
|
/// <param name="handler">The handler.</param>
|
|
|
/// <param name="handler">The handler.</param>
|
|
|
void RemoveHandler(RoutedEvent routedEvent, Delegate handler); |
|
|
void RemoveHandler(RoutedEvent routedEvent, Delegate handler); |
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Removes a handler for the specified routed event.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <typeparam name="TEventArgs">The type of the event's args.</typeparam>
|
|
|
|
|
|
/// <param name="routedEvent">The routed event.</param>
|
|
|
|
|
|
/// <param name="handler">The handler.</param>
|
|
|
|
|
|
void RemoveHandler<TEventArgs>(RoutedEvent<TEventArgs> routedEvent, EventHandler<TEventArgs> handler) |
|
|
|
|
|
where TEventArgs : RoutedEventArgs; |
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
/// <summary>
|
|
|
/// Adds the object's handlers for a routed event to an event route.
|
|
|
/// Adds the object's handlers for a routed event to an event route.
|
|
|
/// </summary>
|
|
|
/// </summary>
|
|
|
|