This is a migrated thread and some comments may be shown as answers.

Minimum Size of RadPane

1 Answer 244 Views
Docking
This is a migrated thread and some comments may be shown as answers.
Christina
Top achievements
Rank 1
Christina asked on 28 Feb 2013, 12:43 AM
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.

1 Answer, 1 is accepted

Sort by
0
Vladi
Telerik team
answered on 04 Mar 2013, 12:15 PM
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:
<Application.Resources>
    <Style TargetType="telerik:ToolWindow">
        <Setter Property="MinHeight" Value="200"/>
        <Setter Property="MinWidth" Value="200"/>
    </Style>
</Application.Resources>

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,
Vladi
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
Docking
Asked by
Christina
Top achievements
Rank 1
Answers by
Vladi
Telerik team
Share this question
or