I'd like to drag an object of my application and let it just behave like a dragged panel. When dropped I would create a panel based on this object. If this is not possible, would it maybe be possible to create a panel when the dragging starts and just drag it instead of the object?
Hello dclausen,
Thank you for your post.
I would recommend that you take a look at the Infragistics Drag-Drop Framework to achieve this requirement. Here is a link to our online documentation about this drag-drop framework: http://help.infragistics.com/doc/WPF/2014.1/CLR4.0/?page=Drag_and_Drop_Framework.html.
Using this drag-drop framework, you could make your object of your application a DragSource and make the XamDockManager the drop target. If you were to handle the Drop event on your DragSource, you could make sure that the XamDockManager is the drop target from the event arguments of that event. From there, you could create a SplitPane and a ContentPane, and place your object inside of the ContentPane. Then, you could place the ContentPane inside of the SplitPane.Panes collection, and finally add the SplitPane to the XamDockManager.Panes collection to have it show in the XamDockManager.
Please let me know if you have any other questions or concerns on this matter.
Sincerely,AndrewAssociate DeveloperInfragistics Inc.www.infragistics.com/support
Just checking in, did you have any other questions or concerns on this matter?
Hello,
While dragging the new element into the XamDockManager, would it be possible to activate the XamDockManager controls that allow the user to specify the location of the new pane?
Thanks,
Chris