Пример #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();
 }