I am using the following xaml:
<telerikDocking:RadDocking Margin="0" Grid.Row="1" d:LayoutOverrides="Width, Height">
<telerikDocking:RadDocking.DocumentHost>
<telerikDocking:RadSplitContainer x:Name="DocumentSplitContainer">
<telerikDocking:RadPaneGroup x:Name="DocumentPaneGroup">
<!-- Add RadDocumentPane programmatically -->
</telerikDocking:RadPaneGroup>
</telerikDocking:RadSplitContainer>
</telerikDocking:RadDocking.DocumentHost>
<telerikDocking:RadSplitContainer InitialPosition="DockedLeft">
<telerikDocking:RadPaneGroup>
<telerikDocking:RadPane x:Name="UserMenuPane" Header="User Menu" CanUserClose="False" CanDockInDocumentHost="False" CanFloat="False">
<telerikNavigation:RadOutlookBar HeaderVisibility="Collapsed">
<telerikNavigation:RadOutlookBarItem Header="Home" x:Name="HomeOutlookBarItem"/>
<telerikNavigation:RadOutlookBarItem Header="Strategic Planning">
<telerikNavigation:RadTreeView IsLineEnabled="True">
<telerikNavigation:RadTreeViewItem Header="Strategic Planning"
IsExpanded="True">
[...]
In the code-behind I am creating severals RadDocumentPanes which I want to add to the DocumentPaneGroup which was defined in the XAML above.
// Define document pane
RadDocumentPane radDocumentPane = new RadDocumentPane();
radDocumentPane.CanDockInDocumentHost =
true;
radDocumentPane.CanFloat =
true;
radDocumentPane.CanUserClose =
true;
// Add pane to group
DocumentPaneGroup.AddItem(radDocumentPane,
DockPosition.Center);
Unfortunately the added RadDocumentPane does not look like as expected (see screenshot attached).
How can this problem be fixed?
Thanks for you help.
Daniel