Ejemplo n.º 1
0
        public InkSelectionRectangleService(InkCanvas inkCanvas, Canvas selectionCanvas, InkStrokesService strokeService)
        {
            _inkCanvas       = inkCanvas;
            _selectionCanvas = selectionCanvas;
            _strokeService   = strokeService;

            _inkCanvas.ManipulationMode       = ManipulationModes.TranslateX | ManipulationModes.TranslateY;
            _inkCanvas.ManipulationStarted   += InkCanvas_ManipulationStarted;
            _inkCanvas.ManipulationDelta     += InkCanvas_ManipulationDelta;
            _inkCanvas.ManipulationCompleted += InkCanvas_ManipulationCompleted;
        }
Ejemplo n.º 2
0
 public InkFileService(InkCanvas inkCanvas, InkStrokesService strokesService)
 {
     _inkCanvas      = inkCanvas;
     _strokesService = strokesService;
 }
Ejemplo n.º 3
0
 public InkCopyPasteService(InkStrokesService strokesService)
 {
     _strokesService = strokesService;
 }
Ejemplo n.º 4
0
 public InkTransformService(Canvas drawingCanvas, InkStrokesService strokeService)
 {
     _drawingCanvas = drawingCanvas;
     _strokeService = strokeService;
     _inkAnalyzer   = new InkAnalyzer();
 }