mirror of
https://github.com/Stone-Red-Code/docs-desktop.git
synced 2026-09-07 07:56:07 +02:00
Initial WPF content migrated (#17)
* Reset branch for WPF changes * Convert BMP to PNG; fix link-out-of-scope err * Add snippets for WPF... 6794 files!!!! * Add missing snippets * update file updated between migration * Fix paths to include * update breadcrumb and toc * fix index links * fix index links * fix index links * fix markdown
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
---
|
||||
title: "Storing Ink"
|
||||
ms.date: "03/30/2017"
|
||||
dev_langs:
|
||||
- "csharp"
|
||||
- "vb"
|
||||
helpviewer_keywords:
|
||||
- "ISF (Ink Serialized Format)"
|
||||
- "storing ink [WPF]"
|
||||
- "ink [WPF], storing"
|
||||
- "retrieving ink [WPF]"
|
||||
- "Ink Serialized Format (ISF)"
|
||||
ms.assetid: 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 [!INCLUDE[TLA2#tla_winclient](../../../includes/tla2sharptla-winclient-md.md)] 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-csharp[DigitalInkTopics#12](~/samples/snippets/csharp/VS_Snippets_Wpf/DigitalInkTopics/CSharp/Window1.xaml.cs#12)]
|
||||
[!code-vb[DigitalInkTopics#12](~/samples/snippets/visualbasic/VS_Snippets_Wpf/DigitalInkTopics/VisualBasic/Window1.xaml.vb#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-csharp[DigitalInkTopics#13](~/samples/snippets/csharp/VS_Snippets_Wpf/DigitalInkTopics/CSharp/Window1.xaml.cs#13)]
|
||||
[!code-vb[DigitalInkTopics#13](~/samples/snippets/visualbasic/VS_Snippets_Wpf/DigitalInkTopics/VisualBasic/Window1.xaml.vb#13)]
|
||||
|
||||
## See also
|
||||
|
||||
- <xref:System.Windows.Controls.InkCanvas>
|
||||
- [Windows Presentation Foundation](../index.md)
|
||||
Reference in New Issue
Block a user