예제 #1
0
 private void Undo()
 {
     if (ActionManager.CanUndo)
     {
         SelectionManager.ClearSelection();
         ActionManager.Undo();
     }
 }
예제 #2
0
 private void Redo()
 {
     if (ActionManager.CanRedo)
     {
         SelectionManager.ClearSelection();
         ActionManager.Redo();
     }
 }
예제 #3
0
 private void Designer_MouseLeftButtonDown(object sender, MouseButtonEventArgs e)
 {
     if (!e.Handled)
     {
         e.Handled = true;
         SelectionManager.ClearSelection();
         GridPropertyGrid.Show(null, null);
     }
 }
예제 #4
0
        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));
            }
        }
예제 #5
0
 protected override void ExecuteCore()
 {
     SelectionManager.ClearSelection();
     index = panel.Children.IndexOf(child);
     panel.Children.RemoveAt(index);
 }
예제 #6
0
 private void Designer_SizeChanged(object sender, SizeChangedEventArgs e)
 {
     SelectionManager.ClearSelection();
 }