This commit is contained in:
ShrlAlgo
2025-07-11 09:20:23 +08:00
parent c7b104f44f
commit 4d35cadb56
840 changed files with 102347 additions and 11595 deletions

View File

@@ -5,35 +5,35 @@ namespace WPFluent.Controls;
public static class Toast
{
public static void Information(FrameworkElement owner, string message, ToastLocation location = ToastLocation.TopCenter, Thickness offsetMargin = default, int time = ToastConfig.NormalTime)
=> Show(owner, message, new ToastConfig(ToastIcon.Information, location, offsetMargin, time));
public static void Information(FrameworkElement owner, string message, Thickness offsetMargin = default, int time = ToastConfig.NormalTime)
=> Show(owner, message, new ToastConfig(ToastIcon.Information, offsetMargin, time));
public static void Information(string message, ToastLocation location = ToastLocation.TopCenter, Thickness offsetMargin = default, int time = ToastConfig.NormalTime)
=> Show(null!, message, new ToastConfig(ToastIcon.Information, location, offsetMargin, time));
public static void Information(string message, Thickness offsetMargin = default, int time = ToastConfig.NormalTime)
=> Show(null!, message, new ToastConfig(ToastIcon.Information, offsetMargin, time));
public static void Success(FrameworkElement owner, string message, ToastLocation location = ToastLocation.TopCenter, Thickness offsetMargin = default, int time = ToastConfig.NormalTime)
=> Show(owner, message, new ToastConfig(ToastIcon.Success, location, offsetMargin, time));
public static void Success(FrameworkElement owner, string message, Thickness offsetMargin = default, int time = ToastConfig.NormalTime)
=> Show(owner, message, new ToastConfig(ToastIcon.Success, offsetMargin, time));
public static void Success(string message, ToastLocation location = ToastLocation.TopCenter, Thickness offsetMargin = default, int time = ToastConfig.NormalTime)
=> Show(null!, message, new ToastConfig(ToastIcon.Success, location, offsetMargin, time));
public static void Success(string message, Thickness offsetMargin = default, int time = ToastConfig.NormalTime)
=> Show(null!, message, new ToastConfig(ToastIcon.Success, offsetMargin, time));
public static void Error(FrameworkElement owner, string message, ToastLocation location = ToastLocation.TopCenter, Thickness offsetMargin = default, int time = ToastConfig.NormalTime)
=> Show(owner, message, new ToastConfig(ToastIcon.Error, location, offsetMargin, time));
public static void Error(FrameworkElement owner, string message, Thickness offsetMargin = default, int time = ToastConfig.NormalTime)
=> Show(owner, message, new ToastConfig(ToastIcon.Error, offsetMargin, time));
public static void Error(string message, ToastLocation location = ToastLocation.TopCenter, Thickness offsetMargin = default, int time = ToastConfig.NormalTime)
=> Show(null!, message, new ToastConfig(ToastIcon.Error, location, offsetMargin, time));
public static void Error(string message, Thickness offsetMargin = default, int time = ToastConfig.NormalTime)
=> Show(null!, message, new ToastConfig(ToastIcon.Error, offsetMargin, time));
public static void Warning(FrameworkElement owner, string message, ToastLocation location = ToastLocation.TopCenter, Thickness offsetMargin = default, int time = ToastConfig.NormalTime)
=> Show(owner, message, new ToastConfig(ToastIcon.Warning, location, offsetMargin, time));
public static void Warning(FrameworkElement owner, string message, Thickness offsetMargin = default, int time = ToastConfig.NormalTime)
=> Show(owner, message, new ToastConfig(ToastIcon.Warning, offsetMargin, time));
public static void Warning(string message, ToastLocation location = ToastLocation.TopCenter, Thickness offsetMargin = default, int time = ToastConfig.NormalTime)
=> Show(null!, message, new ToastConfig(ToastIcon.Warning, location, offsetMargin, time));
public static void Warning(string message, Thickness offsetMargin = default, int time = ToastConfig.NormalTime)
=> Show(null!, message, new ToastConfig(ToastIcon.Warning, offsetMargin, time));
public static void Question(FrameworkElement owner, string message, ToastLocation location = ToastLocation.TopCenter, Thickness offsetMargin = default, int time = ToastConfig.NormalTime)
=> Show(owner, message, new ToastConfig(ToastIcon.Question, location, offsetMargin, time));
public static void Question(FrameworkElement owner, string message, Thickness offsetMargin = default, int time = ToastConfig.NormalTime)
=> Show(owner, message, new ToastConfig(ToastIcon.Question, offsetMargin, time));
public static void Question(string message, ToastLocation location = ToastLocation.TopCenter, Thickness offsetMargin = default, int time = ToastConfig.NormalTime)
=> Show(null!, message, new ToastConfig(ToastIcon.Question, location, offsetMargin, time));
public static void Question(string message, Thickness offsetMargin = default, int time = ToastConfig.NormalTime)
=> Show(null!, message, new ToastConfig(ToastIcon.Question, offsetMargin, time));
public static void Show(FrameworkElement owner, string message, ToastConfig? options = null)
{