Min and Max Size Issue

2 posts, 0 answers
  1. Philippe
    Philippe avatar
    8 posts
    Member since:
    Oct 2012

    Posted 08 Jan 2013 Link to this post

    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


  2. Vladi
    Admin
    Vladi avatar
    744 posts

    Posted 11 Jan 2013 Link to this post

    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.

  3. UI for WPF is Visual Studio 2017 Ready
Back to Top