Drag and drop item in same ListView
问题 I have following ListView <ListView Name="listAccounts" Width="300" AllowDrop="True" SelectionMode="Single" CanDragItems="True" CanDrag="True" CanReorderItems="True" Background="{ThemeResource myBackground}" DragItemsStarting="listAccounts_DragItemsStarting" Drop="listAccounts_Drop"> and defined my event handlers as private void listAccounts_DragItemsStarting(object sender, DragItemsStartingEventArgs e) { e.Data.SetData("itemIndex", (e.Items[0] as AccountList).Text.ToString()); } private