Data-bind an InkCanvas control
This task snipped enables you use XAML data binding with ink stroke data in an InkCanvas control.
The InkCanvas class does not expose a dependency property for its ink stroke data, so there is no built-in target for data binding. This snippet provides a InkStrokes attached property that you can use to bind to an InkStrokeContainer. This enables you to manipulate the ink stroke data programmatically (for example, to deserialize it from storage) and have the changes appear in the UI automatically.