Files
docs-desktop/dotnet-desktop-guide/framework/wpf/advanced/how-to-drag-and-drop-ink.md
T
Andy De George da363692ff 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
2020-09-04 09:46:28 -07:00

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)]