更新整理

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,20 +1,11 @@
using WPFluent.Interop;
using System;
using System.ComponentModel;
using System.Diagnostics.CodeAnalysis;
using System.Diagnostics.CodeAnalysis;
using System.Runtime.InteropServices;
using System.Text;
using System.Text.RegularExpressions;
using System.Windows;
using System.Windows.Input;
using System.Windows.Interop;
using System.Windows.Media;
using Button = System.Windows.Controls.Button;
using TextBlock = System.Windows.Controls.TextBlock;
using WPFluent.Interop;
namespace WPFluent.Controls;
@@ -87,17 +78,17 @@ public partial class PendingBoxDialog : 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);
//}
// Hide the all window control buttons
{
nint hwnd = new WindowInteropHelper(this).Handle;
long currentStyle = User32.GetWindowLong(hwnd, User32.GWL.GWL_STYLE);
_ = User32.SetWindowLong(hwnd, User32.GWL.GWL_STYLE, currentStyle & ~User32.WS_SYSMENU);
User32.SetWindowLong(hwnd, User32.GWL.GWL_STYLE, currentStyle & ~User32.WS_SYSMENU);
}
}