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

Default sizing for RadSplitters

1 Answer 70 Views
Docking
This is a migrated thread and some comments may be shown as answers.
Paul Brun
Top achievements
Rank 2
Paul Brun asked on 18 Jun 2010, 02:52 PM
So, I have a XAML block with the following:

(
<telerikDocking:RadDocking x:Name="ctlMainDocking" Grid.Row="2" HasDocumentHost="False" PreviewPin="ctlMainDocking_PreviewPin" PreviewShow="ctlMainDocking_PreviewShow" PaneStateChange="ctlMainDocking_PaneStateChange" >

            <telerikDocking:RadSplitContainer x:Name="ctlDetailContainer"  InitialPosition="DockedBottom" telerikDocking:ProportionalStackPanel.RelativeSize="0, 20">
                <telerikDocking:RadPaneGroup x:Name="ctlDetailGroup" VerticalContentAlignment="Top">
                </telerikDocking:RadPaneGroup>
            </telerikDocking:RadSplitContainer>

            <telerikDocking:RadSplitContainer x:Name="ctlContentContainer" InitialPosition="DockedRight" telerikDocking:ProportionalStackPanel.RelativeSize="0, 80" >
                <telerikDocking:RadPaneGroup x:Name="ctlContentGroup">
                </telerikDocking:RadPaneGroup>
            </telerikDocking:RadSplitContainer>

            <telerikDocking:RadSplitContainer x:Name="ctlNavigationContainer" InitialPosition="DockedLeft" telerikDocking:ProportionalStackPanel.RelativeSize="0, 20">
                <telerikDocking:RadPaneGroup x:Name="ctlNavigationGroup">
                </telerikDocking:RadPaneGroup>
            </telerikDocking:RadSplitContainer>
       
        </telerikDocking:RadDocking>
)

My question, how does the ProportionalStackPanel.RelativeSize actually work? I want to have the NavigationContainer fill up 20% of the screen by default and the ContentContainer 80%, but it seems to do the option and not sure how it should work or what the RelativeSize perimeters actually mean? Any insight would be helpful....

Thanks
Paul

1 Answer, 1 is accepted

Sort by
0
Paul Brun
Top achievements
Rank 2
answered on 18 Jun 2010, 07:25 PM
Played around with this some more and got it all workin' the way I need it to work. I had to reorganize the XAML and two RAD groups into one......

Paul
Tags
Docking
Asked by
Paul Brun
Top achievements
Rank 2
Answers by
Paul Brun
Top achievements
Rank 2
Share this question
or