Ejemplo n.º 1
0
 void ClearCanvasStrokeCache()
 {
     // Workaround for builds prior to 17650.
     // Throw away the old inkCanvas and create a new one to avoid accumulation of old strokes.
     outputGrid.Children.Remove(inkCanvas);
     inkCanvas = new InkCanvas();
     outputGrid.Children.Add(inkCanvas);
     inkCanvas.InkPresenter.InputDeviceTypes  = CoreInputDeviceTypes.Mouse | CoreInputDeviceTypes.Pen | CoreInputDeviceTypes.Touch;
     inkCanvas.InkPresenter.StrokesCollected += InkPresenter_StrokesCollected;
     HelperFunctions.UpdateCanvasSize(RootGrid, outputGrid, inkCanvas);
 }
Ejemplo n.º 2
0
 private void OnSizeChanged()
 {
     HelperFunctions.UpdateCanvasSize(RootGrid, outputGrid, inkCanvas);
 }
Ejemplo n.º 3
0
 private void OnSizeChanged(object sender, SizeChangedEventArgs e)
 {
     HelperFunctions.UpdateCanvasSize(RootGrid, outputGrid, inkCanvas);
 }