Files
Andy (Steve) De George be103da07e Replace various WPF include files with content (#1335)
* 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
2022-03-16 12:14:11 -04:00

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
csharp
vb
ISF (Ink Serialized Format)
storing ink [WPF]
ink [WPF], storing
retrieving ink [WPF]
Ink Serialized Format (ISF)
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]

See also