Using Workspace without MDI

Docking/MDI for WPF Forum

Posted 15 years ago by Brian Stewart
Version: 9.1.0506
Avatar
I have a hierarchy that looks like this:

-Ribbon
-DockSite
  - SplitContainer
     - Workspace
        - My User Control
     - ToolWindowContainer
        - ToolWindow
I started off using tabbed MDI for my workspace, but decided that since the tabs on my ribbon correspond to the tabs on the workspace, I would just switch the contents of the workspace out whenever the ribbon tab changes, and save the screen real-estate that the Workspace tabs occupied. However, when I attempted to set this up, everything looks fine except that my UserControl is too large, and seemingly makes no attempt to resize to it's parent. I tried setting Horizontal and Vertical Alignment to Stretch, on both the workspace and the user control, but to no avail. Any clues?

Comments (2)

Posted 15 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Hi Brian,

I can't really say without seeing the problem, but I would suspect it's something in your code. Take a look at our "Workspace Content" QuickStart. That shows a Grid containing our logo, etc. in the workspace area. The Grid does stretch to the workspace's size as you resize the window. So I don't think it's anything in our code causing this.

If you can't figure it out you can make a simple sample project that shows it and email it over to us.


Actipro Software Support

Posted 15 years ago by Brian Stewart
Avatar
Yes - it was something in my code. I had a child control in my user control that had it's width and height set to auto, I believe. When I removed that, then everything worked as expected. Thanks for your response.
The latest build of this product (v24.1.3) was released 24 days ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.