I've got an issue where I can drag/drop in the Dock Manager between the document host and the content panes using the DragDrop framework. But when a content pane comes out into a separate window, all of a sudden the DragDrop framework refuses to recognize it as a drop target.
Is there a known issue with the DragDrop framework that says it doesn't support multiple windows (dragging from one window to another)? Or is there something subtle going on in the xamDockManager that is interfering with the behavior of drag/drop?
Any help would be appreciated. I found an extremely dated article that says drag/dropping between different xamDockManagers is not supported. But we are only using one, with a content pane that is floating:
http://ko.infragistics.com/community/forums/p/17937/65183.aspx#65183
Please let me know. I can also try to create a repro if needed.
That other article is even less applicable than I thought. Please ignore it.
Sorry, can someone move this to a new group? It should be under the DragDrop Framework since it isn't specifically about the xamDockManager (as it turns out).
It just so happened that the xamDockManager was hosted in a Windows Forms ElementHost. Then when the content pane was broken out, it was hosted in a pure WPF window.
The problem appears to be a more general issue with the DragDrop framework not working between a WinForms Element Host and WPF window targets.
Repro:
- Start with Infragistics WPF samples (look for "BasicDragDrop")
- BasicDragDrop converted to a simple user control and hosted in Windows Forms ElementHost
- Programmatically open a separate, standalone (modeless) WPF window (eg. attached is StackPanelWindow)
- Run the sample. Open the window. Try to drag from the BasicDragDrop in the ElementHost out to the StackPanelWindow. This fails.
This repro turned out slightly different than I originally thought. The ElementHost normally gives me few issues but when the dock manager's content pane was pulled out of it, dragdrop stopped working.
Thanks in advance. David