feat: Notification Position.

This commit is contained in:
Zhang Dian
2024-09-09 19:54:04 +08:00
parent b0bacfa0ae
commit f219acff49
5 changed files with 130 additions and 22 deletions

View File

@@ -13,6 +13,16 @@ public partial class NotificationDemoViewModel : ObservableObject
[ObservableProperty] private bool _showClose = true;
[RelayCommand]
public void ChangePosition(object obj)
{
if (obj is string s && NotificationManager is not null)
{
Enum.TryParse<NotificationPosition>(s, out var notificationPosition);
NotificationManager.Position = notificationPosition;
}
}
[RelayCommand]
public void ShowNormal(object obj)
{