There is a WrapPanel filled with a Label, the resulting field is 10x10. Label created dynamically, two events cling to them
la.Drop += lbl_Drop; la.MouseDown += lbl_MouseDown; private void lbl_MouseDown(object sender, MouseButtonEventArgs e) { Label lbl = (Label)sender; DragDrop.DoDragDrop(lbl, lbl.Content, DragDropEffects.All); } private void lbl_Drop(object sender, DragEventArgs e) { ((Label)sender).Background = new SolidColorBrush(Colors.Blue); } When you try to drag it, an icon appears that indicates that you can not do this, what's the problem?
DoDragDropand similar heavy artillery are needed. - VladD