diff --git a/source/Components/AvalonDock/Controls/LayoutFloatingWindowControl.cs b/source/Components/AvalonDock/Controls/LayoutFloatingWindowControl.cs index b6805938..8383a222 100644 --- a/source/Components/AvalonDock/Controls/LayoutFloatingWindowControl.cs +++ b/source/Components/AvalonDock/Controls/LayoutFloatingWindowControl.cs @@ -176,12 +176,8 @@ private set protected override void OnStateChanged(EventArgs e) { if (!_isInternalChange) - { - if (WindowState == WindowState.Maximized) - UpdateMaximizedState(true); - else - WindowState = IsMaximized ? WindowState.Maximized : WindowState.Normal; - } + UpdateMaximizedState(WindowState == WindowState.Maximized); + base.OnStateChanged(e); }