Exemplo n.º 1
0
 private void Window_Loaded_1(object sender, RoutedEventArgs e)
 {
     inkCanvas1.Background = Brushes.DarkSlateBlue;
     inkCanvas1.DefaultDrawingAttributes.Color = Colors.SpringGreen;
     inkCanvas1.Strokes.StrokesChanged        += new StrokeCollectionChangedEventHandler(Strokes_StrokesChanged);
     inkCanvas1.MouseUp += new MouseButtonEventHandler(inkCanvas1_MouseUp);
     border.Child        = inkCanvas1;
     commandStack        = new CommandStack(inkCanvas1.Strokes);
 }
Exemplo n.º 2
0
        public StrokesAddedOrRemovedCI(CommandStack commandStack, InkCanvasEditingMode editingMode, StrokeCollection added, StrokeCollection removed, int editingOperationCount)
            : base(commandStack)
        {
            _editingMode = editingMode;

            _added   = added;
            _removed = removed;

            _editingOperationCount = editingOperationCount;
        }
Exemplo n.º 3
0
 protected CommandItem(CommandStack commandStack)
 {
     _commandStack = commandStack;
 }