统计订单列表页 增加退款成功按钮

This commit is contained in:
chfei committed 2026-10-08 16:16:19 +08:00
1 parent 1ed9d72815
commit 87a0d34526
7 files changed
+135 -17

No files matched your search

+8 -1
View File
@@ -93,7 +93,14 @@ public static class ToastHelper
};
toast.BeginAnimation(UIElement.OpacityProperty, anim);
}
public static void Show(string message,
ToastType type = ToastType.Info, int durationMs = 2000)
{
Window window = Application.Current.Windows
.OfType<Window>()
.FirstOrDefault(w => w.IsActive) ?? Application.Current.MainWindow;
Show(window, message, type, durationMs);
}
private static Border CreateToast(string message, ToastType type)
{
var color = type switch