feat: Notification Position.
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user