void InkAnalyzer_ContextNodeCreated(object sender, ContextNodeCreatedEventArgs e) { // The GetRecognizedString returns null when the ContextNodeCreated event // is called, so we need to deal with it later. InkWordNode inkWordNode = e.NodeCreated as InkWordNode; if (inkWordNode != null) uncheckedNewWordNodes.Add(inkWordNode); }
void InkAnalyzer_ContextNodeCreated(object sender, ContextNodeCreatedEventArgs e) { // The GetRecognizedString returns null when the ContextNodeCreated event // is called, so we need to deal with it later. InkWordNode inkWordNode = e.NodeCreated as InkWordNode; if (inkWordNode != null) { uncheckedNewWordNodes.Add(inkWordNode); } }
protected override void ContextNodeCreated(object sender, ContextNodeCreatedEventArgs e) { Debug.WriteLine("Holy molly! {0}", e.NodeCreated); InkDrawingNode n = e.NodeCreated as InkDrawingNode; if (n != null) { Debug.WriteLine("Yeah!"); foreach (Stroke x in n.Strokes) { Debug.WriteLine("Uhhhhh {0}", x); analyzer.RemoveStroke(x); x.StylusPoints = InkUtils.xkcd(x.StylusPoints); } } }
protected abstract void ContextNodeCreated(object sender, ContextNodeCreatedEventArgs e);
protected abstract void ContextNodeCreated(object sender, ContextNodeCreatedEventArgs e);
protected override void ContextNodeCreated(object sender, ContextNodeCreatedEventArgs e) { Debug.WriteLine("Holy molly! {0}", e.NodeCreated); InkDrawingNode n = e.NodeCreated as InkDrawingNode; if (n != null) { Debug.WriteLine("Yeah!"); foreach (Stroke x in n.Strokes) { Debug.WriteLine("Uhhhhh {0}", x); analyzer.RemoveStroke(x); x.StylusPoints = InkUtils.xkcd(x.StylusPoints); } } }