From 41915bb36942a8d48a5ecd2bccea8e987239bf99 Mon Sep 17 00:00:00 2001 From: "Emanuel Fernandez Dell'Oca (from Dev Box)" Date: Wed, 18 Oct 2023 17:47:38 -0400 Subject: [PATCH] [WinUI] Fixes window blinking when resizing This bug was introduced by https://github.com/dotnet/maui/pull/17069, but the underlying cause is a bug on WinUI that makes the window blink when setting `NavigationView.IsPaneVisible = false` (https://microsoft.visualstudio.com/DefaultCollection/OS/_workitems/edit/47131770). After testing the samples attached on the issues the original commit fixed, this change does not seem to re-introduce those issues. Fixes https://github.com/dotnet/maui/issues/17724 --- src/Controls/src/Core/Handlers/Shell/ShellItemHandler.Windows.cs | 1 - 1 file changed, 1 deletion(-) diff --git a/src/Controls/src/Core/Handlers/Shell/ShellItemHandler.Windows.cs b/src/Controls/src/Core/Handlers/Shell/ShellItemHandler.Windows.cs index 3ae9743f722e..b60e49ca4126 100644 --- a/src/Controls/src/Core/Handlers/Shell/ShellItemHandler.Windows.cs +++ b/src/Controls/src/Core/Handlers/Shell/ShellItemHandler.Windows.cs @@ -476,7 +476,6 @@ void UpdateTabBarVisibility(IShellItemController item) var paneDisplayMode = GetNavigationViewPaneDisplayMode(item); mauiNavView.PaneDisplayMode = paneDisplayMode; mauiNavView.PinPaneDisplayModeTo = paneDisplayMode; - mauiNavView.IsPaneVisible = item.ShowTabs; } public static void MapTabBarIsVisible(ShellItemHandler handler, ShellItem item)