Window Covers Taskbar When Initially Loaded As Maximized

Jan 10, 2011 at 5:01 PM

There's a small bug here where if the window is initially loaded as maximized it will cover the taskbar. To fix this, place the following lines in StandardWindow.OnLoaded just before the line that creates the StateChanged event handler:

            //If window is maximized when first displayed, we must do this to set it's height so that it doesn't cover the taskbar.
            if (WindowState == System.Windows.WindowState.Maximized)