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
100
How to handle "empty workarea" when LayoutStyle=FillContainer
posted

Hi!

My Winforms app consists of a navigator window to the left, and a set of "content" windows to the right. All windows are dockable, and the UltraDockManager is set up with LayoutStyle=FillContainer to let the content windows fill up all available screen area upon loading.

But when the application loads initially there are no content windows, and the navigator window fills all available space (which looks rather weird). Instead I would like the navigator window to remain in its standard size, and the content area to the right just display a grey background color, or similar. (The requested behaviour is more or less similar to Visual Studio with navigation window being the Solution Explorer and the content window being the loaded files.)

Suggestions, anyone?

- Atle -

Parents
No Data
Reply
  • 44743
    Verified Answer
    posted

    If you would like to accomplish a VS like interface, the best way would be to set IsMdiContainer on the Form to True. Use the UltraDockManager for the panes, and an UltraTabbedMdiManager for the documents in the center area. Each MDI child form will become a tab in the center. However, if you would like to continue to use the UltraDockManager with a layout style of FillContainer to manage all panes and documents, you can try to dock a gray panel to the center and set its Settings.ShowCaption to False so it will occupy the center area instead of the navigation window.

Children