Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9202259
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T23:12:49+00:00 2026-06-17T23:12:49+00:00

I am looking to dock dock panels to an existing dock panel. My current

  • 0

I am looking to dock dock panels to an existing dock panel.

My current layout is as follows. On the left of the window is a settings dock panel. On the right is another dock panel. The right dock panel takes up most the of window. The left dock panels contain items that, when interacted with(controls, etc), effect what is seen in the right dock panel.

I need to add new left side dock panels dynamically. The first one should dock to the bottom of the settings dock panel. The second one should dock to the first, and so on.

I can get the first new dock panel to dock to the settings dock panel as I want. Any subsequent dock panels though do not dock to the bottom of the previous. Instead, they dock to the right of the previous and force #1 into a column. Here is my code:

       // Add a new dock panel
        DockPanel dockPanel = dockManager1.AddPanel(DockingStyle.Top);

        // Dock the panel to the previous panel
        if (mLeftSidePanels.Count == 0)
            dockPanel.DockTo(dockPanelSettings);
        else
            dockPanel.DockTo(mLeftSidePanels[mLeftSidePanels.Count - 1].DockPanel);

        // Add the left side dock panel to our collection
        mLeftSidePanels.Add(dockpanel);
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T23:12:50+00:00Added an answer on June 17, 2026 at 11:12 pm

    Please, try the following approach:

    IList<DockPanel> mLeftSidePanels = new List<DockPanel>();
    //...
    void addNewPanelButton_Click(object sender, EventArgs e) {
        dockManager1.BeginUpdate();
    
        DockPanel dockPanel = dockManager1.AddPanel(DockingStyle.Top);
        // Dock the panel to the previous panel
        if(mLeftSidePanels.Count == 0)
            dockPanel.DockTo(dockPanelSettings);
        else {
            // add to parent split container
            dockPanel.DockTo(dockPanelSettings.ParentPanel);
        }
        mLeftSidePanels.Add(dockPanel);
    
        dockManager1.EndUpdate();
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm looking to create a window object that looks just like the Dock's Stack.
I'm looking to put a horizontal fisheye/dock nav on my site, but I need
im looking for a free version of the following http://demos.telerik.com/aspnet-ajax/dock/examples/overview/defaultcs.aspx and wondered if anyone
I am looking for an open source implementation of the Mac OSX dock animation
Looking for a way to add a background layer to existing photoshop files with
Here is the setup: I have the Applications folder right in the dock, which
Looking to add an attribute to an existing xml element <D_COMMS> , not replace
I'm looking for a way to intercept all dock icon clicks(so I can display
I'm wondering how to dock / snap a window to the side of the
I have a DockPanel as the root element for my window. I have another

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.