Ejemplo n.º 1
0
 protected void ClearCommandExecute()
 {
     CompleteTextEditing(true);
     while (canvas.Children.Count > 2)
     {
         canvas.Children.RemoveAt(2);
     }
     URStack.Clear();
     RaiseCommandsCanExecuteChanged();
     SetCurrentValue(BackgroundImageSourceProperty, null);
 }
Ejemplo n.º 2
0
 protected void RedoCommandExecute()
 {
     canvas.Children.Add(URStack.Pop());
     RaiseCommandsCanExecuteChanged();
 }
Ejemplo n.º 3
0
 protected void UndoCommandExecute()
 {
     URStack.Push(canvas.Children[canvas.Children.Count - 1] as UIElement);
     canvas.Children.RemoveAt(canvas.Children.Count - 1);
     RaiseCommandsCanExecuteChanged();
 }