private void Undo() { if (ActionManager.CanUndo) { SelectionManager.ClearSelection(); ActionManager.Undo(); } }
private void Redo() { if (ActionManager.CanRedo) { SelectionManager.ClearSelection(); ActionManager.Redo(); } }
private void Designer_MouseLeftButtonDown(object sender, MouseButtonEventArgs e) { if (!e.Handled) { e.Handled = true; SelectionManager.ClearSelection(); GridPropertyGrid.Show(null, null); } }
private void DragSourceContainer_MouseLeave(object sender, MouseEventArgs e) { var coordinates = Coordinates(e); if (DragManager.DragCandidate != null && DragManager.DragCandidateSponsor == DragSource && !DragManager.IsDragging) { SelectionManager.ClearSelection(); DragSource.StartDrag(DragManager.DragCandidate); DragManager.MouseMove(e.GetPosition(Designer.Instance.Canvas)); } }
protected override void ExecuteCore() { SelectionManager.ClearSelection(); index = panel.Children.IndexOf(child); panel.Children.RemoveAt(index); }
private void Designer_SizeChanged(object sender, SizeChangedEventArgs e) { SelectionManager.ClearSelection(); }