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