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
  • 69686
    posted

    Hello,

    The width of these panes has to depend on the ActualWidth of the XamDockManager or your window. On Load, you can check the ActualWidth property of the XamDockManager or Window and set th widths of your panes accordingly. You could also Load a saved layout with the LoadLayout method.

Reply Children