Completed
Last Updated: 07 Feb 2022 08:00 by ADMIN
Release LIB 2022.1.207 (7 Feb 2022)
Stenly
Created on: 04 Jan 2022 12:52
Category: Docking
Type: Feature Request
2
Docking: Create a property to change the Margin property present in each RadPaneGroup element

Currently, the RadPaneGroup has one Grid layout with Margin="5" present in its control template, which causes the Content of each child pane to be indented according to the Margin property's value.

To work this around, extract the control template, with x:Key="RadPaneGroupDocumentHostControlTemplate", and modify the Grid layout, which has its Margin property set to 5. After that, create a new style with TargetType="RadPaneGroup" and set its DocumentHostTemplate property, to the modified one.

1 comment
ADMIN
Masha
Posted on: 02 Feb 2022 11:41

To remove the extra space around the panes in the pane groups and the DocumentHost, you need to create a style for the RadPaneGroup and override the default Padding as follow:

<!-- If you're using the NoXaml binaries, you need to base the custom style on the default one for the control, like so:
<Style TargetType="telerik:RadPaneGroup" BasedOn="{StaticResource RadPaneGroupStyle}"> -->
<Style TargetType="telerik:RadPaneGroup">
    <Setter Property="Padding" Value="0" />
    <Style.Triggers>
        <Trigger Property="IsInDocumentHost" Value="True">
            <Setter Property="Padding" Value="0" />
        </Trigger>
    </Style.Triggers>
</Style>

 

Regards,
Masha
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.