//Detects when the writing strokes are finished private void inkCanvas_StrokesCollected(InkPresenter sender, InkStrokesCollectedEventArgs args) { timer.Stop(); foreach (var stroke in args.Strokes) { analyzerText.AddDataForStroke(stroke); analyzerText.SetStrokeDataKind(stroke.Id, InkAnalysisStrokeKind.Writing); } timer.Start(); }
//Detects when the writing strokes are finished private void inkCanvas_StrokesCollected(InkPresenter sender, InkStrokesCollectedEventArgs args) { timer.Stop(); for (int i = 0; i < inkCanvas.Length; i++) { if (inkCanvas[i].InkPresenter == sender) { currentCanvasNumber = i; } } foreach (var stroke in args.Strokes) { analyzerText.AddDataForStroke(stroke); analyzerText.SetStrokeDataKind(stroke.Id, InkAnalysisStrokeKind.Writing); } timer.Start(); }