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

RelativeSize does not work

1 Answer 93 Views
Docking
This is a migrated thread and some comments may be shown as answers.
Jacek Dudziak
Top achievements
Rank 1
Jacek Dudziak asked on 21 May 2011, 06:41 AM
I have tried to folow example from your RadToolsSilverlightCourseware, but I cannot get the look your manual states. I would like to make sure that the whole screen is filled up by the panels using this code:

<

 

 

UserControl x:Class="RadControlsSilverlightApp5.MainPage"

 

 

 

xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"

 

 

 

 

xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"

 

 

 

xmlns:d="http://schemas.microsoft.com/expression/blend/2008"

 

 

 

 

xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"

 

 

 

xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"

 

 

 

mc:Ignorable="d" d:DesignHeight="480" d:DesignWidth="640">

 

 

 

 

<Grid x:Name="LayoutRoot">

 

 

 

 

<telerik:RadDocking>

 

 

 

 

<telerik:RadSplitContainer InitialPosition="DockedTop"

 

 

 

telerik:ProportionalStackPanel.RelativeSize="0,70">

 

 

 

 

<telerik:RadPaneGroup>

 

 

 

 

<telerik:RadPane></telerik:RadPane>

 

 

 

 

</telerik:RadPaneGroup>

 

 

 

 

</telerik:RadSplitContainer>

 

 

 

 

<telerik:RadSplitContainer InitialPosition="DockedBottom"

 

 

 

telerik:ProportionalStackPanel.RelativeSize="0,30">

 

 

 

 

<telerik:RadPaneGroup telerik:ProportionalStackPanel.RelativeSize="20,0">

 

 

 

 

<telerik:RadPane></telerik:RadPane>

 

 

 

 

</telerik:RadPaneGroup>

 

 

 

 

<telerik:RadPaneGroup telerik:ProportionalStackPanel.RelativeSize="80,0">

 

 

 

 

<telerik:RadPane></telerik:RadPane>

 

 

 

 

</telerik:RadPaneGroup>

 

 

 

 

</telerik:RadSplitContainer>

 

 

 

 

 

</telerik:RadDocking>

 

 

 

 

</Grid>

 

 

</

 

 

UserControl>

 

But instead I am getting unused stripe between two split containers.
How can I get rid of it?

1 Answer, 1 is accepted

Sort by
0
Konstantina
Telerik team
answered on 25 May 2011, 11:31 AM
Hello Jacek,

To make it work you will need to remove the DocumentHost. Just set the property HasDocumentHost to False.

Please let us know if you have further questions.

Kind regards,
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
Jacek Dudziak
Top achievements
Rank 1
Answers by
Konstantina
Telerik team
Share this question
or