feat: animation.
This commit is contained in:
@@ -35,7 +35,8 @@ public class Toast : IToast, INotifyPropertyChanged
|
||||
{
|
||||
Content = content;
|
||||
Type = type;
|
||||
Expiration = expiration ?? TimeSpan.FromSeconds(5);
|
||||
Expiration = expiration ?? TimeSpan.FromSeconds(3);
|
||||
ShowClose = showClose;
|
||||
OnClick = onClick;
|
||||
OnClose = onClose;
|
||||
}
|
||||
|
||||
@@ -146,7 +146,7 @@ public class WindowToastManager : TemplatedControl, IManagedToastManager
|
||||
return;
|
||||
}
|
||||
|
||||
await Task.Delay(expiration ?? TimeSpan.FromSeconds(5));
|
||||
await Task.Delay(expiration ?? TimeSpan.FromSeconds(3));
|
||||
|
||||
toastControl.Close();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user