mirror of
https://github.com/Stone-Red-Code/docs-desktop.git
synced 2026-09-06 16:06:07 +02:00
* 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
24 lines
869 B
Markdown
24 lines
869 B
Markdown
---
|
|
title: "How to: Drag and Drop Ink"
|
|
ms.date: "03/30/2017"
|
|
dev_langs:
|
|
- "csharp"
|
|
- "vb"
|
|
helpviewer_keywords:
|
|
- "dragging ink [WPF]"
|
|
- "ink [WPF], dragging"
|
|
- "ink [WPF], drag-and-drop"
|
|
- "ink [WPF], dropping"
|
|
- "drag-and-drop ink"
|
|
- "dropping ink [WPF]"
|
|
ms.assetid: 932dc410-2bf3-4486-ab31-13487ba59f60
|
|
---
|
|
# How to: Drag and Drop Ink
|
|
## Example
|
|
The following example creates an application that enables the user to drag selected strokes from one <xref:System.Windows.Controls.InkCanvas> to the other.
|
|
|
|
[!code-xaml[InkDragDrop#1](~/samples/snippets/csharp/VS_Snippets_Wpf/InkDragDrop/CSharp/Window1.xaml#1)]
|
|
|
|
[!code-csharp[InkDragDrop#2](~/samples/snippets/csharp/VS_Snippets_Wpf/InkDragDrop/CSharp/Window1.xaml.cs#2)]
|
|
[!code-vb[InkDragDrop#2](~/samples/snippets/visualbasic/VS_Snippets_Wpf/InkDragDrop/VisualBasic/Window1.xaml.vb#2)]
|