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

Problem if adding RadDocumentPane programmatically to RadPaneGroup

1 Answer 104 Views
Docking
This is a migrated thread and some comments may be shown as answers.
Walter
Top achievements
Rank 1
Walter asked on 19 Apr 2010, 11:13 PM
Hello,

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

1 Answer, 1 is accepted

Sort by
0
Accepted
Konstantina
Telerik team
answered on 22 Apr 2010, 01:51 PM
Hi Daniel,

Thank you for contacting us.

Your XAML and C# code looks right. I tried to reproduce the issue using the code you provided, but to no avail.
Could you please share with us which exact version of the controls you are using? Also, sending us a sample running project in which this issue is reproduced will helps us resolve the problem in a timely manner.

Looking forward to your reply.

All the best,
Konstantina
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
Docking
Asked by
Walter
Top achievements
Rank 1
Answers by
Konstantina
Telerik team
Share this question
or