You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Add setting border color
* Update FluentWindow.cs
* Update FluentWindow.cs
It's actually SystemAccent used by Windows.
* Update UnsafeNativeMethods.cs
* Use border only when active, similar to WinUI
* Update UnsafeNativeMethods.cs
* Listen for theme changes
* Ensure desktop composition is enabled before changing WindowChrome
/// This virtual method is called when <see cref="WindowBackdropType"/> is changed.
280
+
/// </summary>
281
+
protectedvirtualvoidSetWindowChrome()
282
+
{
283
+
try
284
+
{
285
+
if(Utilities.IsCompositionEnabled)
286
+
{
287
+
WindowChrome.SetWindowChrome(
288
+
this,
289
+
newWindowChrome
290
+
{
291
+
CaptionHeight=0,
292
+
CornerRadius=default,
293
+
GlassFrameThickness=WindowBackdropType==WindowBackdropType.None?newThickness(0.00001):newThickness(-1),// 0.00001 so there's no glass frame drawn around the window, but the border is still drawn.
0 commit comments