更新整理

This commit is contained in:
GG Z
2025-04-24 20:56:44 +08:00
parent 155cef46f8
commit 5b6d67b571
813 changed files with 14437 additions and 12362 deletions

View File

@@ -1,12 +1,14 @@
using WPFluent.Interop;
using System.Diagnostics.CodeAnalysis;
using System.Runtime.InteropServices;
using System.Text;
using System.Text.RegularExpressions;
using System.Windows.Input;
using WPFluent.Interop;
using Button = System.Windows.Controls.Button;
using MessageBoxButton = System.Windows.MessageBoxButton;
using MessageBoxResult = System.Windows.MessageBoxResult;
@@ -375,11 +377,11 @@ public partial class MessageBoxDialog : Window
base.OnSourceInitialized(e);
InvalidateMeasure();
if (WindowBackdrop.IsSupported(WindowBackdropType.Mica))
{
Background = new SolidColorBrush(Colors.Transparent);
WindowBackdrop.ApplyBackdrop(this, WindowBackdropType.Mica);
}
//if (WindowBackdrop.IsSupported(WindowBackdropType.Mica))
//{
// Background = new SolidColorBrush(Colors.Transparent);
// WindowBackdrop.ApplyBackdrop(this, WindowBackdropType.Mica);
//}
}
private void OnButtonClick(object? sender, RoutedEventArgs e)
@@ -449,7 +451,21 @@ public partial class MessageBoxDialog : Window
Close(result);
}
}
[Flags]
public enum DialogBoxCommand : uint
{
IDOK = 0,
IDCANCEL = 1,
IDABORT = 2,
IDRETRY = 3,
IDIGNORE = 4,
IDYES = 5,
IDNO = 6,
IDCLOSE = 7,
IDHELP = 8,
IDTRYAGAIN = 9,
IDCONTINUE = 10,
}
private void UpdateButtonTextState()
{
MessageBoxTemplateSettings templateSettings = TemplateSettings;