Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
45
Unpinned Pane - hide on drag outside
posted

Hi everybody, 

I have an unpinned pane docked to the left of my xamDockManager. In this pane there's a list of draggable items, which can be dropped to the ContentPane under the opened flyout. 

How can I achieve that when I drag an item outside the opened unpinned pane, this pane auto hides and the area behind it can receive the drop? 

Thanks in advance,
Tobi

  • 3520
    Offline posted

    Hello Tobi,

    In order to make the flied out pane fly in you need to deactivate it and activate another one. So for the scenario you are describing you may call the Activate() method on the content pane under the opened fly-out while dragging. The code should look similar to the following snippet:

    private void DragSource_DragOver(object sender, Infragistics.DragDrop.DragDropMoveEventArgs e)
    {
        if (e.DropTarget == cp1)
            cp1.Activate();

    }

    I created a small sample application for your reference where I use the described approach.
    Please let me know if you have any further questions regarding this matter.

    XamDockManagerTesting.zip