コード例 #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();
 }