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
120
Setting Minimum width / height for content pane.
posted

I have the following code. Is there a way by which I could set the minimum height and width for the content pane so that they dont go below a certain height/width when the user resizes the panes. Each content pane can have a different minimum height.

I tried setting the minheight and minwidth for the content pane but that did not work.

Thanks.

<igDock:XamDockManager>
<igDock:DocumentContentHost>

<igDock:SplitPane SplitterOrientation="Horizontal">

<igDock:TabGroupPane>
 <igDock:ContentPane AllowDockingFloating="False"  Header="Primary">    

 <Grid>
 </Grid>

 </igDock:ContentPane>
</igDock:TabGroupPane>

<igDock:TabGroupPane>

More content panes

/<igDock:TabGroupPane>

</igDock:SplitPane>

</igDock:DocumentContentHost>
</igDock:XamDockManager>

  • 54937
    Suggested Answer
    Offline posted

    The only thing that affects the size of the children of a SplitPane is the attached RelativeSize property and the constraints of that child so you would need to set the constraints on the TabGroupPane itself and manage updating that as panes were moved, added, closed, etc. Perhaps you should just put a ScrollViewer as the content of pane so that when the pane is small the end user can still scroll within the pane to see its content.