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); }
public StrokesAddedOrRemovedCI(CommandStack commandStack, InkCanvasEditingMode editingMode, StrokeCollection added, StrokeCollection removed, int editingOperationCount) : base(commandStack) { _editingMode = editingMode; _added = added; _removed = removed; _editingOperationCount = editingOperationCount; }
protected CommandItem(CommandStack commandStack) { _commandStack = commandStack; }