示例#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);
 }
 private void OnSizeChanged()
 {
     HelperFunctions.UpdateCanvasSize(RootGrid, outputGrid, inkCanvas);
 }
示例#3
0
 private void OnSizeChanged(object sender, SizeChangedEventArgs e)
 {
     HelperFunctions.UpdateCanvasSize(RootGrid, outputGrid, inkCanvas);
 }