Default sizing for RadSplitters

2 posts, 0 answers
  1. Paul Brun
    Paul Brun avatar
    41 posts
    Member since:
    May 2010

    Posted 18 Jun 2010 Link to this post

    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
  2. Paul Brun
    Paul Brun avatar
    41 posts
    Member since:
    May 2010

    Posted 18 Jun 2010 Link to this post

    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
  3. DevCraft banner
Back to Top