From eec31f0ec01866c1f97f80808228e799640a33a5 Mon Sep 17 00:00:00 2001 From: SKProCH Date: Sat, 4 Jan 2025 16:07:13 +0300 Subject: [PATCH] Make routed events have proper generics --- DialogHost.Avalonia/DialogHost.axaml.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/DialogHost.Avalonia/DialogHost.axaml.cs b/DialogHost.Avalonia/DialogHost.axaml.cs index 7043cf5..35319d2 100644 --- a/DialogHost.Avalonia/DialogHost.axaml.cs +++ b/DialogHost.Avalonia/DialogHost.axaml.cs @@ -87,13 +87,13 @@ public class DialogHost : ContentControl { /// /// Identifies the routed event. /// - public static readonly RoutedEvent DialogOpenedEvent = + public static readonly RoutedEvent DialogOpenedEvent = RoutedEvent.Register(nameof(DialogOpened), RoutingStrategies.Bubble); /// /// Identifies the routed event. /// - public static readonly RoutedEvent DialogClosingEvent = + public static readonly RoutedEvent DialogClosingEvent = RoutedEvent.Register(nameof(DialogClosing), RoutingStrategies.Bubble); ///