Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
485
Grid with round border
posted

I'll keep it short: Is there any way to give the XamDataGrid a round border?

Parents
No Data
Reply
  • 54937
    Offline posted

    The only element that exposes a CornerRadius is the Border element so to control the radius you would need to retemplate the xamDataGrid and set the CornerRadius of the Border with that. e.g.

        <igDP:XamDataGrid.Template>
            <ControlTemplate TargetType="{x:Type igDP:XamDataGrid}">
                <Border 
                    Background="{TemplateBinding Background}" 
                    BorderBrush="{TemplateBinding BorderBrush}" 
                    BorderThickness="{TemplateBinding BorderThickness}"
                    SnapsToDevicePixels="True" 
                    CornerRadius="5"
                    Padding="{TemplateBinding Padding}">
                    <Grid x:Name ="PART_ContentSiteGrid"
                          SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}"/>
                </Border>
            </ControlTemplate>
        </igDP:XamDataGrid.Template>
     
Children
No Data