How to fill the client area when the main form is resized after the RadDock control LoadFromXml

1 Answer 20 Views
Dock
yw
Top achievements
Rank 2
Iron
Iron
yw asked on 26 Oct 2025, 10:31 AM

I am testing the RadDock control (2025 Q2 version).
The Dock property of dock is set to Fill.
After applying the layout with dock.LoadFromXml(xmlPath, clearDocking: false);, when the MDI main form is resized, the laid-out window does not fill the client area (as indicated by the red arrow in the figure). How can I modify it so that the laid-out window fills the client area of the MDI window?

 

1 Answer, 1 is accepted

Sort by
0
Nadya | Tech Support Engineer
Telerik team
answered on 29 Oct 2025, 08:45 PM

Hello,

Based on the picture only, I can not determine why the window doesn’t fill the client area. Could you please provide the saved XML file so that I can load it on my side and try to reproduce the issue?

If possible, please share the entire project. That way, I can examine it more closely and provide more accurate assistance. Thank you in advance for your understanding. 

Looking forward to your reply.
Regards,
Nadya | Tech Support Engineer
Progress Telerik

Your perspective matters! Join other professionals in the State of Designer-Developer Collaboration 2025: Workflows, Trends and AI survey to share how AI and new workflows are impacting collaboration, and be among the first to see the key findings.
Start the 2025 Survey
yw
Top achievements
Rank 2
Iron
Iron
commented on 30 Oct 2025, 12:28 PM | edited

Thank you for your reply. See the attached layout file.


<?xml version="1.0" encoding="utf-8"?>
<RadDock AutoDetectMdiChildren="True" MdiChildrenDockType="ToolWindow" ShowDocumentCloseButton="True" ShowDocumentPinButton="True" ShowToolCloseButton="True" ToolTabsAlignment="Top" IsCleanUpTarget="True" Orientation="Horizontal" CausesValidation="False" BackgroundImageLayout="Center" TabIndex="3" TabStop="False">
  <BackgroundImage xsi:type="System.Drawing.Bitmap" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" />
  <Controls>
    <Telerik.WinControls.UI.Docking.DocumentContainer IsMainDocumentContainer="True" Orientation="Vertical" BackColor="Transparent" Name="_dockDoc">
      <SizeInfo SplitterCorrection="0, 0" AutoSizeScale="0, 0" SizeMode="Fill" />
      <Controls>
        <Telerik.WinControls.UI.Docking.DocumentTabStrip SelectedIndex="0" ShowItemCloseButton="True" Size="1118, 572" Location="0, 0" Name="DockTabStrip2" TabIndex="0" TabStop="False">
          <SizeInfo SplitterCorrection="0, 0" AutoSizeScale="0, 0" />
          <Controls>
            <CaseClarityStudio.Forms.DocDefenseOutline IsPinned="False" CloseAction="Hide" PreviousDockState="TabbedDocument" Name="DocDefenseOutline" Size="1106, 536" Location="6, 30" Font="Microsoft YaHei UI, 9pt" Text="DefenseOutline" />
          </Controls>
        </Telerik.WinControls.UI.Docking.DocumentTabStrip>
      </Controls>
    </Telerik.WinControls.UI.Docking.DocumentContainer>
    <Telerik.WinControls.UI.Docking.ToolTabStrip SelectedIndex="0" ShowItemCloseButton="True" TabStripAlignment="Top" Size="1118, 220" Location="5, 581" CausesValidation="False" Name="DockTabStrip3" TabIndex="1" TabStop="False">
      <SizeInfo SplitterCorrection="0, 0" AutoSizeScale="0, 0" AbsoluteSize="1118, 220" />
      <Controls>
        <CaseClarityStudio.Forms.TwMessageOutput Caption="" PreviousDockState="Docked" Name="TwMessageOutput" Size="1116, 194" Location="1, 24" Font="Microsoft YaHei UI, 9pt" Text="MessageOutput" />
      </Controls>
    </Telerik.WinControls.UI.Docking.ToolTabStrip>
  </Controls>
</RadDock>

This is the form constructor:

 public TwMessageOutput() { }

public TwMessageOutput(IEventBus bus)

 public DocDefenseOutline() { }
 public DocDefenseOutline(IEventBus bus)

 

public RadFrmMain(IEventBus bus,...){...}

 

Nadya | Tech Support Engineer
Telerik team
commented on 04 Nov 2025, 09:29 AM

Hello, 

I used the provided xml in a sample project but I am still not able to replicate the exact problem on my side. This is why I provide my test project for your reference. Please try to replicate the exact behavior there and get the project back to me. Without having a project that can replicate the problem, it is difficult to determine what exactly happens.

You can find my sample project, also including your xml, attached to this message.

Looking forward to your reply.

Tags
Dock
Asked by
yw
Top achievements
Rank 2
Iron
Iron
Answers by
Nadya | Tech Support Engineer
Telerik team
Share this question
or