This is a migrated thread and some comments may be shown as answers.

DocumentHost save/load layout issue

1 Answer 69 Views
Docking
This is a migrated thread and some comments may be shown as answers.
David
Top achievements
Rank 1
David asked on 18 Jan 2018, 08:03 PM

I have been using RadDocking in WPF for a few years now and have been loading and saving layouts but we have noticed one issue that I am trying to address. If a user creates two (or more) documents in a DocumentHost and puts one above the other and saves the layout when the layout is restored the documents are side by side. Below is the XML that is generated by the SaveLayout call. I believe the pertinent attribute is the Orientation="Vertical" in the RadSplitContainer. If I read that correctly the two RadPaneGroups should be positioned vertically one above the other on the screen but they are always positioned side by side. I am still investigating and trying to reproduce this in a simpler application that I can share but I was wondering if anyone else had seen this behavior.

 

<RadDocking>
  <DocumentHost>
    <RadSplitContainer>
      <Items>
        <RadSplitContainer RelativeWidth="100" RelativeHeight="100" IsAutoGenerated="True" Orientation="Vertical" SplitterChange="701">
          <Items>
            <RadPaneGroup SerializationTag="DocumentGroup" SelectedIndex="0">
              <Items>
                <RadPane SerializationTag="LogViewer" IsPinned="True" IsHidden="True" IsDockable="True" Header="Log Viewer" />
                <RadDocumentPane SerializationTag="dtm:points:fc0c8d04-3d65-47d7-a5ad-d46f433a0fc6:/Outstation/sDNP/sDNP/sDNP" IsPinned="True" IsDockable="True" Title="DTMControls.DTMPointListCtrl" Header="DTMControls.DTMPointListCtrl" />
              </Items>
            </RadPaneGroup>
            <RadPaneGroup RelativeWidth="100" RelativeHeight="100" IsAutoGenerated="True" SelectedIndex="0">
              <Items>
                <RadDocumentPane SerializationTag="dtm:points:61ef9dd8-ca6e-4b67-9fde-ab94c8e148f6:/Master/mDNP/mDNP/mDNP" IsPinned="True" IsDockable="True" Title="DTMControls.DTMPointListCtrl" Header="DTMControls.DTMPointListCtrl" />
              </Items>
            </RadPaneGroup>
          </Items>
        </RadSplitContainer>
        <RadPaneGroup RelativeWidth="100" RelativeHeight="100" IsAutoGenerated="True" SplitterChange="489" SelectedIndex="0">
          <Items>
            <RadDocumentPane SerializationTag="dtm:display1:57269279-9f89-4df3-981d-ca8ed4c2d485:/Outstation/Outstation Display.tgf" IsPinned="True" IsDockable="True" />
            <RadDocumentPane SerializationTag="dtm:analyzer:418e5fde-b466-44e1-8694-ba2d659a8a1c:/" IsPinned="True" IsDockable="True" Title="DTMControls.DTMAnalyzerCtrl" Header="DTMControls.DTMAnalyzerCtrl" />
          </Items>
        </RadPaneGroup>
      </Items>
    </RadSplitContainer>
  </DocumentHost>

1 Answer, 1 is accepted

Sort by
0
Kalin
Telerik team
answered on 23 Jan 2018, 04:06 PM
Hello David,

We are not aware of such behavior of RadDocking. Please provide the sample project once you manage to isolate the issue, so we further investigate it on our side. Also can you please confirm which version of UI for WPF you are using?

I'm looking forward to hearing from you.

Regards,
Kalin
Progress Telerik
Want to extend the target reach of your WPF applications, leveraging iOS, Android, and UWP? Try UI for Xamarin, a suite of polished and feature-rich components for the Xamarin framework, which allow you to write beautiful native mobile apps using a single shared C# codebase.
Tags
Docking
Asked by
David
Top achievements
Rank 1
Answers by
Kalin
Telerik team
Share this question
or