Use select change event in list
private void listBox2_SelectionChanged(object sender, SelectionChangedEventArgs e) { ListBoxItem i = (ListBoxItem)listBox2.Items[listBox2.SelectedIndex]; s = i.Content.ToString(); DragDrop.DoDragDrop(listBox2, i.Content.ToString(), DragDropEffects.All); }
source share