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

Min and Max Size Issue

1 Answer 142 Views
Docking
This is a migrated thread and some comments may be shown as answers.
Philippe
Top achievements
Rank 1
Philippe asked on 08 Jan 2013, 11:37 AM
Hi,

I try to build a layout defined in the sample image attached.
The principle is that each module has a fixed position, but the size can be changed by the user, in a min / max range.

Here is my code :
<Window x:Class="WpfApplication2.MainWindow"
        Title="MainWindow">
    <Window.Resources>
        <Style x:Key="DefaultRadPaneStyle"
               TargetType="telerik:RadPane">
            <Setter Property="Focusable"
                    Value="False" />
            <Setter Property="PaneHeaderVisibility"
                    Value="Collapsed" />
            <Setter Property="CanUserClose"
                    Value="False" />
            <Setter Property="CanFloat"
                    Value="False" />
            <Setter Property="CanDockInDocumentHost"
                    Value="False" />
            <Setter Property="CanUserPin"
                    Value="False" />
            <Setter Property="IsPinned"
                    Value="True" />
            <Setter Property="ContextMenuTemplate"
                    Value="{x:Null}" />
        </Style>
    </Window.Resources>
    <Grid>
        <telerik:RadDocking x:Name="docking"
                            AllowUnsafeMode="True">
            <telerik:RadDocking.DocumentHost>
                <Grid />
            </telerik:RadDocking.DocumentHost>
            <telerik:RadSplitContainer Orientation="Vertical"
                                       InitialPosition="DockedLeft"
                                       Width="300"
                                       MinWidth="100"
                                       MaxWidth="400">
                <telerik:RadPaneGroup MinHeight="100"
                                      MaxHeight="300">
                    <telerik:RadPane Style="{StaticResource DefaultRadPaneStyle}" />
                </telerik:RadPaneGroup>
                <telerik:RadPaneGroup>
                    <telerik:RadPane Style="{StaticResource DefaultRadPaneStyle}" />
                </telerik:RadPaneGroup>
                <telerik:RadPaneGroup>
                    <telerik:RadPane Style="{StaticResource DefaultRadPaneStyle}" />
                </telerik:RadPaneGroup>
            </telerik:RadSplitContainer>
            <telerik:RadSplitContainer Orientation="Horizontal"
                                       InitialPosition="DockedBottom"
                                       Height="300"
                                       MinHeight="100"
                                       MaxHeight="400">
                <telerik:RadPaneGroup>
                    <telerik:RadPane Style="{StaticResource DefaultRadPaneStyle}">
                    </telerik:RadPane>
                </telerik:RadPaneGroup>
                <telerik:RadPaneGroup>
                    <telerik:RadPane Style="{StaticResource DefaultRadPaneStyle}">
                    </telerik:RadPane>
                </telerik:RadPaneGroup>
                <telerik:RadPaneGroup>
                    <telerik:RadPane Style="{StaticResource DefaultRadPaneStyle}">
                    </telerik:RadPane>
                </telerik:RadPaneGroup>
            </telerik:RadSplitContainer>
        </telerik:RadDocking>
    </Grid>
</Window>

Is this the good way to achieve this?
How can I specify the min and max size (height or width) for the RadPaneGroup ? (the given example has unexpected behaviour, as in the second capture)

Regards
Philippe


1 Answer, 1 is accepted

Sort by
0
Vladi
Telerik team
answered on 11 Jan 2013, 09:55 AM
Hello Philippe,

In the current version of RadDocking the MinHeight/MaxHeight properties are inherited from the framework and setting them on RadPaneGroup is not a supported scenario in the control.

Currently there are no future plans on implementing MinHeight/MaxHeight functionality for RadPaneGroups in the control in our future releases of RadControls.

All the best,
Vladi
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

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