I am not sure I understand the problem. Are you trying to implement some kind of a "designer" like Visual Studio's designer, or just to place the controls from the ListBox on in predefined places on the page?
Either way, there are various ways to accomplish this. In general, you can use the DragDropManager events to accomplish the desired functionality. You can use the DragInitializing handler to set the dragged data to the control that you are dragging.
sender, DragInitializeEventArgs args)
args.AllowedEffects = DragDropEffects.All;
args.Data = ((FrameworkElement)args.OriginalSource).ChildrenOfType<TopContainer>().FirstOrDefault();
// This should be the control you are trying to drag
You can place the control you dragged in the Drop event handler.
sender, Telerik.Windows.DragDrop.DragEventArgs args)
// Add the control you are dragging in the children collection of the target. If needed you can adjust some manditory properties before adding it. Like GridRow, CanvasTop etc.
You can use the other event to adjust the other properties you need to implement the functionality.
Hope this helps!
the Telerik team
Sharpen your .NET Ninja skills
! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>