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
200
Pinned/Unpinned ContentPane
posted

Simple Xaml:
<igDock:XamDockManager Name="xamDockManager1" >
            <igDock:XamDockManager.Panes>
                <igDock:SplitPane >
                    <igDock:ContentPane Header="Pane 1" IsPinned="False"  Name="pPanel"  MouseEnter="pPanel_MouseEnter" MouseLeave="Button_MouseLeave">
                    </igDock:ContentPane>
                </igDock:SplitPane>
            </igDock:XamDockManager.Panes>
  </igDock:XamDockManager
>
I try to get the same layout behavior as Visual Studio 2010/08.
1.When I hover mouse over the collapsed ContentPane(CP), I want to start dragging immediately (as VS 2010).But I can do it only after I “pinned” the CP.
2. I drag the CP to the bottom of window, and “unpin”. When I position mouse over docked(collapsed) CP it expands to the size it has before(as expected) but when I move mouse out of CP it never gets collapsed again (as the same CP docked to the left side).

Looks like a bugs – any way to get around?   

Parents
No Data
Reply
  • 28407
    posted

    HI,

    I got a similiar function as Visual Studio 2010 by wireing up the following events for the ContentPane:

     .   void Button_MouseLeave(object sender, MouseEventArgs e)
            {
               // throw new NotImplementedException();
                ContentPane cp = (ContentPane)sender;
                cp.IsPinned = false;
            }

            void pPanel_MouseEnter(object sender, MouseEventArgs e)
            {
              //  throw new NotImplementedException();
                ContentPane cp = (ContentPane)sender;
                cp.IsPinned = true;
            }

      Sincerely,

     Matt
    Developer Support Engineer

Children