From 4dac9fd1ad86adcc4ae67169f3d9600e44241b45 Mon Sep 17 00:00:00 2001 From: Dan Walmsley Date: Wed, 10 Apr 2019 22:40:26 +0100 Subject: [PATCH] port notification --- .../Notifications/Notification.cs | 42 ++++++++++++------- 1 file changed, 28 insertions(+), 14 deletions(-) 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