From 73bfed86326495e921b1966499f2e00cfd59814a Mon Sep 17 00:00:00 2001 From: Zhang Dian <54255897+zdpcdt@users.noreply.github.com> Date: Wed, 11 Sep 2024 15:55:02 +0800 Subject: [PATCH] fix: fix binding method. --- src/Ursa/Controls/Notification/WindowNotificationManager.cs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/Ursa/Controls/Notification/WindowNotificationManager.cs b/src/Ursa/Controls/Notification/WindowNotificationManager.cs index c1acd1f..af502a6 100644 --- a/src/Ursa/Controls/Notification/WindowNotificationManager.cs +++ b/src/Ursa/Controls/Notification/WindowNotificationManager.cs @@ -108,10 +108,9 @@ public class WindowNotificationManager : WindowMessageManager, INotificationMana { Content = content, NotificationType = type, - ShowClose = showClose + ShowClose = showClose, + [!NotificationCard.PositionProperty] = this[!PositionProperty] }; - // this.Bind(PositionProperty,notificationControl.GetObservable(PositionProperty)); - this[!PositionProperty] = notificationControl[!NotificationCard.PositionProperty]; // Add style classes if any if (classes is not null)