Files
docs-desktop/dotnet-desktop-guide/framework/wpf/advanced/how-to-analyze-ink-with-analysis-hints.md
T
David CoulterandAndy De George 674b773578 Links: .NET Desktop - framework\wpf (#109)
* Links: .NET Desktop - framework\wpf

* Apply suggestions from code review

Co-authored-by: Andy De George <[email protected]>
2020-11-05 13:50:29 -08:00

2.0 KiB

title, ms.date, dev_langs, helpviewer_keywords, ms.assetid
title ms.date dev_langs helpviewer_keywords ms.assetid
How to: Analyze Ink with Analysis Hints 03/30/2017
csharp
vb
ink [WPF], analyzing
analyzing ink [WPF]
ink [WPF], AnalysisHintNode objects [WPF]
AnalysisHintNode objects [WPF]
d4421ed4-77f5-4640-829e-9f1de50b2ff2

How to: Analyze Ink with Analysis Hints

An System.Windows.Ink.AnalysisHintNode provides a hint for the System.Windows.Ink.InkAnalyzer to which it is attached. The hint applies to the area specified by the System.Windows.Ink.ContextNode.Location%2A property of the System.Windows.Ink.AnalysisHintNode and provides extra context to the ink analyzer to improve recognition accuracy. The System.Windows.Ink.InkAnalyzer applies this context information when analyzing ink obtained from within the hint's area.

Example

The following example is an application that uses multiple System.Windows.Ink.AnalysisHintNode objects on a form that accepts ink input. The application uses the System.Windows.Ink.AnalysisHintNode.Factoid%2A property to provide context information for each entry on the form. The application uses background analysis to analyze the ink and clears the form of all ink five seconds after the user stops adding ink.

[!code-xamlHowToAnalyzeInk#1]

[!code-csharpHowToAnalyzeInk#2] [!code-vbHowToAnalyzeInk#2]