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

Setting RadDock Size to a percentage value

1 Answer 137 Views
Docking
This is a migrated thread and some comments may be shown as answers.
Antonis
Top achievements
Rank 2
Antonis asked on 27 Mar 2009, 09:49 AM
Hello all,

I have a usercontrol with a simple RadDock control but i want to have control of each sizing. 

So, 


<UserControl x:Class="Telerik.Page" 
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"  
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"  
    xmlns:radDock="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Docking"
    <Grid x:Name="LayoutRoot">        
        <radDock:RadDocking Name="mainDocking"
            <radDock:RadDocking.DocumentHost> 
                <radDock:RadSplitContainer> 
                    <radDock:RadPaneGroup> 
                        <radDock:RadPane Name="Pane0" Header="Pane0"/> 
                    </radDock:RadPaneGroup> 
                </radDock:RadSplitContainer> 
            </radDock:RadDocking.DocumentHost> 
 
            <radDock:RadSplitContainer Orientation="Horizontal" InitialPosition="DockedBottom"
                <radDock:RadPaneGroup> 
                    <radDock:RadPane Name="Pane1" Header="Pane1"/> 
                </radDock:RadPaneGroup> 
                <radDock:RadPaneGroup> 
                    <radDock:RadPane Name="Pane2" Header="Pane2"/> 
                </radDock:RadPaneGroup> 
            </radDock:RadSplitContainer> 
        </radDock:RadDocking>         
    </Grid> 
</UserControl> 
 
 


My problem is that i want to set the size of the document host to have 40% Height, 100% Width of the screen and the other two bottom panes to have 60% Height, 60% Width and 60% Height, 40% Width each.

Is this feasible?!


Many thanks, 

Antonis

1 Answer, 1 is accepted

Sort by
0
Miroslav Nedyalkov
Telerik team
answered on 27 Mar 2009, 12:36 PM
Hi Antonis,

At this time you cannot do this with the docking control, because the panel that is used is a dock panel that doesn't support such behavior.

Regards,
Miroslav Nedyalkov
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Docking
Asked by
Antonis
Top achievements
Rank 2
Answers by
Miroslav Nedyalkov
Telerik team
Share this question
or