private void Maximize() { var area = Screen.GetWorkingArea(new System.Drawing.Rectangle((int)Left, (int)Top, (int)ActualWidth, (int)ActualHeight)); previousBounds = new Rect(Left, Top, ActualWidth, ActualHeight); Left = area.Left; Top = area.Top; Width = area.Width; Height = area.Height; if (null != maximizeButton) { maximizeButton.Content = "2"; } isMaximized = true; }