更新整理
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user