From e918ea7acbca5e946f7add19dff919fafab8466d Mon Sep 17 00:00:00 2001 From: AncientGrief Date: Wed, 21 Aug 2024 16:05:10 +0200 Subject: [PATCH] TitleBarPaneCompactMarginDefault set to 35 to prevent icon moving. Toggling the NavigationBar no longer makes the TitleBar title and icon jump around. --- src/Wpf.Ui/Controls/NavigationView/NavigationView.Base.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Wpf.Ui/Controls/NavigationView/NavigationView.Base.cs b/src/Wpf.Ui/Controls/NavigationView/NavigationView.Base.cs index 0beabb6ba..3b6939051 100644 --- a/src/Wpf.Ui/Controls/NavigationView/NavigationView.Base.cs +++ b/src/Wpf.Ui/Controls/NavigationView/NavigationView.Base.cs @@ -67,7 +67,7 @@ public NavigationView() private readonly ObservableCollection _breadcrumbBarItems = []; private static readonly Thickness TitleBarPaneOpenMarginDefault = new(35, 0, 0, 0); - private static readonly Thickness TitleBarPaneCompactMarginDefault = new(55, 0, 0, 0); + private static readonly Thickness TitleBarPaneCompactMarginDefault = new(35, 0, 0, 0); private static readonly Thickness AutoSuggestBoxMarginDefault = new(8, 8, 8, 16); private static readonly Thickness FrameMarginDefault = new(0, 50, 0, 0);