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://es.infragistics.com/community/forums/p/17937/65183.aspx#65183
Please let me know. I can also try to create a repro if needed.
Hello dbeavon,
I have been investigating this issue further, and it appears that drag drop functionality works in every scenario here except for WindowsForms window to WPF Window. The opposite (WPF Window to WindowsForms host) works correctly. This is unexpected behavior, and as such I have asked our engineering staff to examine this further. To ensure that this issue receives attention, I have logged it in our internal tracking system with a development ID of 193574.
I will be linking this development issue to the case that you have with me that discusses this issue. That case has an ID of CAS-155149-R6S2V5.
Please let me know if you have any other questions or concerns on this matter.
Sincerely,AndrewAssociate DeveloperInfragistics Inc.www.infragistics.com/support
Thank you for your post.
I have reproduced this behavior that you are seeing using the reproduction steps that you have provided. I am currently investigating further into this issue to see what can be done to allow dragging between the ElementHost WindowsForms form and the WPF Window. I should have more information for you on this matter shortly.
Case number is CAS-155149-R6S2V5 .
Based on my repro, I'm creating a support case. Sorry for the impatience and/or sorry if anyone is already looking at this. I'll post my issue number.
If there were a known issue in the interop between the ElementHost and the DragDrop framework, I expect I would have found it in my google searches by now. Maybe there is a new issue or regression?
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