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