create and move around stuff with drag and drop

Docking/MDI for WPF Forum

Posted 8 years ago by Henrik
Version: 16.1.0630
Avatar

Hi. We have upgraded to 2016.1 and our drag and drop has stopped working.

We have some WPF controls we would like to create by dragging from a toolbox we have created. We then want to be able to dock these by dragging them to their position in a DockSite. We also want to be able to move them around afterwards.

In the previous version, to create a new control, we created a new ToolWindow with our control as content. The ToolWindow was created using a DockSite as the constructor argument. We then called DragMove() on the created ToolWindow to drag it to position in the DockSite. This no longer works.

For windows already properly placed in the DockSite we called DragMove to move them. After the update this shows the docking cross on the same ToolWindow we are dragging, with strange result if dropped on itself. We are using our own header on the window, and we want it to behave as the built in one.

Could you offer some guidelines on how to create and move ToolWindows?

Thanks,
Henrik

Comments (1)

Posted 8 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar

Hi Henrik,

For this can you please make a new simple sample project in a ZIP that shows the issue you are having and email that to our support address?  Reference this thread in your email, and be sure to rename the .zip file extension so that it doesn't get spam blocked.  Then we will debug the project and see what code updates are needed to get this working like in the old version.  Thanks!


Actipro Software Support

The latest build of this product (v24.1.1) was released 2 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.