Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
605
Setting relative Height for SplitPanes in XamDockManager
posted

I have a requirement as below in which i have a XamDockManager-->Panes-->SplitPane-->
here i have a TabGroupPane and 3 ContentPanes as shown in Code below,I want to have relative Sizes
like first TabGroupPane should occupy 10% of the screen ,Region2(ContentPAne) must occupy about
next 50% of the screen etc .how can i acheive this....presently i am getting same height for
all the 4 panes

<DockPanel>
  <ig:XamDockManager>           
        <ig:XamDockManager.Panes>               
           <ig:SplitPane x:Name="splitPane" SplitterOrientation="Horizontal">                   
                <ig:TabGroupPane x:Name="Region1"/>
                <ig:ContentPane x:Name="Region2">
            <ItemsControl x:Name="InsideRegion2"/>
        </ig:ContentPane>
        <ig:ContentPane x:Name="Region3">
            <ItemsControl x:Name="InsideRegion3"/>
        </ig:ContentPane>
        <ig:ContentPane x:Name="Region4">
            <ItemsControl x:Name="InsideRegion4"/>
        </ig:ContentPane>
            </ig:SplitPane>
        </ig:XamDockManager.Panes>
  </ig:XamDockManager>
</DockPanel>

Thanks in Advance

Parents Reply
  • 54937
    Offline posted in reply to DevProx

    Well the documentation is on the GetRelativeSize method (since this is an attached property) although it looks like it needs to be updated. Since this is a Size, I guess it was assumed to be understood that the Width portion affected the horizontal distribution - i.e. the width of the relative size of 1 pane is compared to the width of the relative size of the other pane(s) and that ratio determines the percentage of the width that pane will receive.I agree that the documentation should probably be clearer to indicate that the Width portion is ignored when the children are arranged vertically (each pane is the full width of the split pane) and the Height portion is ignored when the children are arranged horizontally (each pane is the full height of the split pane).

Children
No Data