private void WindowDraggableArea_OnPreviewMouseDown(object sender, MouseButtonEventArgs e) { if (e.LeftButton != MouseButtonState.Pressed) { return; } if (WindowStateHelper.IsMaximized) { WindowStateHelper.SetWindowSizeToNormal(this, true); DragMove(); } else { DragMove(); } WindowStateHelper.UpdateLastKnownLocation(Top, Left); }
private void minimizeToolStripMenuItem_Click(object sender, EventArgs e) { WindowStateHelper.DoMinimize(); }