This can be done using TablePC SDK.
Unfortunately, I've used it years ago, when WPF wasn't yet introduced, but event then the recognition demo (.NET application supplied with the SDK) worked quite well, it could be even used for practical entering of text with my drawing tablet. The WPF solution sample could be found, for example, here:
How to use Ink recognize in WPF? — Stack Overflow[
^].
—SA