diff --git a/src/Avalonia.Controls/Notifications/Notification.cs b/src/Avalonia.Controls/Notifications/Notification.cs index f50458163b..690dbfaac9 100644 --- a/src/Avalonia.Controls/Notifications/Notification.cs +++ b/src/Avalonia.Controls/Notifications/Notification.cs @@ -9,40 +9,54 @@ namespace Avalonia.Controls.Notifications { private TimeSpan _closingAnimationTime = TimeSpan.Zero; - public bool IsClosing { get; set; } - - public static readonly RoutedEvent NotificationCloseInvokedEvent = EventManager.RegisterRoutedEvent( - "NotificationCloseInvoked", RoutingStrategy.Bubble, typeof(RoutedEventHandler), typeof(Notification)); + static Notification() + { + CloseOnClickProperty.Changed.AddClassHandler