diff --git a/src/ManagedShell.AppBar/AppBarWindow.cs b/src/ManagedShell.AppBar/AppBarWindow.cs index daaab462..4c945459 100644 --- a/src/ManagedShell.AppBar/AppBarWindow.cs +++ b/src/ManagedShell.AppBar/AppBarWindow.cs @@ -569,7 +569,7 @@ protected virtual IntPtr WndProc(IntPtr hwnd, int msg, IntPtr wParam, IntPtr lPa // if we are opening, we're getting this message as a result of positioning // if we are an AppBar, that code will fix our position, so skip in that case to prevent infinite resizing. - if (!IsOpening || AppBarMode != AppBarMode.Normal) + if (!IsOpening || AppBarMode != AppBarMode.Normal || EnvironmentHelper.IsAppRunningAsShell) { ProcessScreenChange(ScreenSetupReason.DpiChange); }