Background of Workspace

Docking/MDI for WPF Forum

Posted 15 years ago by Eli Gazit - CEO, Softwear Suit Ltd
Avatar
Hi I am using this code:

<!-- Workspace -->
                <docking:Workspace BorderBrush="#898C95" BorderThickness="1">
                    <docking:Workspace.Background>
                        <ImageBrush ImageSource="/LogbiGUI;component/Resources/Images/LogbiLogo.png" />
                    </docking:Workspace.Background>

                    <docking:TabbedMdiHost>
                        <docking:TabbedMdiContainer x:Name="tabbedMdiHost">

                        </docking:TabbedMdiContainer>
                    </docking:TabbedMdiHost>
                </docking:Workspace>
And it is opened with a blank white area with the X button on the top right corner.
When I open a document in the TabbedMDIContainer and close it, I see the image.
How can I make it that it is opened without the blank white rectangle?

Thanks

Comments (2)

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

You should never add a TabbedMdiContainer in there unless it has at least one docking window child. If you don't have any docking window children loaded in your XAML then remove the TabbedMdiContainer and you should see your Workspace.

Also, never name a TabbedMdiContainer. They are added and removed dynamically at run-time so it is never a good idea to reference a specific instance of a TabbedMdiContainer (or ToolWindowContainer) since they are transient controls.


Actipro Software Support

Posted 15 years ago by Eli Gazit - CEO, Softwear Suit Ltd
Avatar
Wow, thanks I guess I was off :)
The latest build of this product (v24.1.2) was released 2 days ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.