Minimum Size of RadPane

2 posts, 0 answers
  1. Christina
    Christina avatar
    6 posts
    Member since:
    Jul 2012

    Posted 27 Feb 2013 Link to this post

    I have a RadDocumentPane that I would like to set the MinHeight and MinWidth on so that the pane can't be resized to smaller than this amount and cut off all of my content. MinHeight and MinWidth properties exist for the RadDocumentPane, but apparently they only affect the title, not the content. I tried setting the properties on a grid wrapping a ContentControl as the RadDocumentPane.Content but it had no effect.

    Please tell me there is a way to set minimum size properties on content of a RadDocumentPane. It's unreasonable to allow a user to resize a pane to 5 by 5 pixels.
  2. Vladi
    Vladi avatar
    749 posts

    Posted 04 Mar 2013 Link to this post

    Hi Christina,

    The MinWIdth, MinHeight properties are present because RadPane inherits FrameworkElement but they are not supported in the current version of the Docking control.

    In order to set MinWidth and MinHeight to the ToolWindow when the Pane is in floating state you will need to set those properties to the ToolWindow in which the Pane is placed. The easiest way of achieving this is by setting an Implicit Style in the App.xaml of your project that targets telerik:ToolWindow.

    The next code snippet shows how to set those properties in the App.xaml:
        <Style TargetType="telerik:ToolWindow">
            <Setter Property="MinHeight" Value="200"/>
            <Setter Property="MinWidth" Value="200"/>

    You can also read our help articles about Split Container that explains how to "Setting the InitialSize of the RadSplitContainer",  "Setting the Initial FloatingSize of the RadSplitContainer".

    All the best,
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Back to Top