From e5c63b2ea48d836476fa2a4aa6fc2ed1e60e3743 Mon Sep 17 00:00:00 2001 From: Mike Griese Date: Mon, 3 Aug 2026 12:42:26 -0500 Subject: [PATCH] Dock: Remove our last 1px gap once and for all (#49641) I guess if you set ExtendsContentIntoTitleBar, well, WinUI will offset your island by x,y=0,1. That's what happens if you don't actually set any titlebar content. * https://github.com/microsoft/microsoft-ui-xaml/blob/main/dxaml/xcp/components/WindowChrome/CWindowChrome.cpp#L202 * https://github.com/microsoft/microsoft-ui-xaml/blob/main/dxaml/xcp/components/WindowChrome/CWindowChrome.cpp#L171 * https://github.com/microsoft/microsoft-ui-xaml/blob/main/dxaml/xcp/components/WindowChrome/inc/CWindowChrome.h#L23 cause like, of course it does. I'm sure there are previous threads to xlink this too --- src/modules/cmdpal/Microsoft.CmdPal.UI/Dock/DockWindow.xaml.cs | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/modules/cmdpal/Microsoft.CmdPal.UI/Dock/DockWindow.xaml.cs b/src/modules/cmdpal/Microsoft.CmdPal.UI/Dock/DockWindow.xaml.cs index bbf7f7a231..036b264f93 100644 --- a/src/modules/cmdpal/Microsoft.CmdPal.UI/Dock/DockWindow.xaml.cs +++ b/src/modules/cmdpal/Microsoft.CmdPal.UI/Dock/DockWindow.xaml.cs @@ -157,8 +157,6 @@ public sealed partial class DockWindow : WindowEx, InitializeComponent(); Root.Children.Add(_dock); - ExtendsContentIntoTitleBar = true; - AppWindow.TitleBar.PreferredHeightOption = TitleBarHeightOption.Collapsed; _hiddenOwnerWindowBehavior.ShowInTaskbar(this, false); if (AppWindow.Presenter is OverlappedPresenter overlappedPresenter) {