How to drag and drop the dynamically created controls my code is shown below
Button btnTask = new Button();
btnTask.Content = _myCustomTasks[iCtr].Description;
btnTask.Background = _myCustomTasks[iCtr].TaskColor;
stackPanel.Children.Add(btnTask);
my requirement is to drag and drop these dynamically created button control. Thanks in Advance