window.MouseDown += Window_MouseDown; private void Window_MouseDown(object sender, System.Windows.Input.MouseButtonEventArgs e) { e.Handled = true; if (e.ChangedButton == System.Windows.Input.MouseButton.Left) { DragMove(); } }