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