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
335
New DockPaneArea positioned below other DockPaneArea
posted

hi,

I have a DockPaneArea (#1) docked to the top. Now when I dynamically add a new DockPaneArea (#2) to the right, it's always positioned under the DockPaneArea #1.     How do I make the DockPaneArea #2 dock to the right and has the same height as the DockAreaPane#1?

I need to make it act like when you re-open the closed Solution Explorer pane in Visual Studio 2008, it always dock to the right and has the same height of the main center panel, not under it.

Thanks in advance.

Parents
No Data
Reply
  • 44743
    posted

    Instead of adding the DockAreaPane to the end of the collection of the dock manager, try inserting it into index 0 in the DockAreas collection of the dock manager. The will affect which dock area takes precedence when laying out its controls.

Children
No Data