diff --git a/src/Avalonia.Base/Interactivity/Interactive.cs b/src/Avalonia.Base/Interactivity/Interactive.cs index a633b906e1..75f74ed3b3 100644 --- a/src/Avalonia.Base/Interactivity/Interactive.cs +++ b/src/Avalonia.Base/Interactivity/Interactive.cs @@ -28,7 +28,7 @@ namespace Avalonia.Interactivity /// Whether handled events should also be listened for. public void AddHandler( RoutedEvent routedEvent, - Delegate? handler, + Delegate handler, RoutingStrategies routes = RoutingStrategies.Direct | RoutingStrategies.Bubble, bool handledEventsToo = false) { @@ -77,7 +77,7 @@ namespace Avalonia.Interactivity /// /// The routed event. /// The handler. - public void RemoveHandler(RoutedEvent routedEvent, Delegate? handler) + public void RemoveHandler(RoutedEvent routedEvent, Delegate handler) { routedEvent = routedEvent ?? throw new ArgumentNullException(nameof(routedEvent)); handler = handler ?? throw new ArgumentNullException(nameof(handler));