* net-current-v30plus-md.md * net-current-v40plus-md.md * tla2sharptla-ui-md.md * tla2sharptla-uiautomation-md.md * tla2sharptla-winclient-md.md * tla2sharptla-xaml-md.md * tlasharptla-ui-md.md * tlasharptla-uiautomation-md.md * tlasharptla-winclient-md.md * tlasharptla-xaml-md.md * fix warnings
1.7 KiB
title, ms.date, dev_langs, helpviewer_keywords, ms.assetid
| title | ms.date | dev_langs | helpviewer_keywords | ms.assetid | |||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Storing Ink | 03/30/2017 |
|
|
a3f6d16b-d682-4680-9965-907332b4d2b8 |
Storing Ink
The xref:System.Windows.Ink.StrokeCollection.Save%2A methods provide support for storing ink as Ink Serialized Format (ISF). Constructors for the xref:System.Windows.Ink.StrokeCollection class provide support for reading ink data.
Ink Storage and Retrieval
This section discusses how to store and retrieve ink in the WPF platform.
The following example implements a button-click event handler that presents the user with a File Save dialog box and saves the ink from an xref:System.Windows.Controls.InkCanvas out to a file.
[!code-csharpDigitalInkTopics#12] [!code-vbDigitalInkTopics#12]
The following example implements a button-click event handler that presents the user with a File Open dialog box and reads ink from the file into an xref:System.Windows.Controls.InkCanvas element.
[!code-csharpDigitalInkTopics#13] [!code-vbDigitalInkTopics#13]