Increase the CheckBox Size of the GridViewSelectColumn
Environment
Product Version | 2018.3.1016 |
Product | RadGridView for WPF |
Description
How to increase the CheckBox size of the GridViewSelectColumn.
Solution
-
Define the following style targetting the CheckBox control.
<Style x:Key="LargeCheckBoxStyle" TargetType="CheckBox" BasedOn="{StaticResource CheckBoxStyle}"> <Setter Property="LayoutTransform"> <Setter.Value> <ScaleTransform ScaleX="2" ScaleY="2" /> </Setter.Value> </Setter> </Style>
If you're not using the implicit styles mechanism for theming the controls with the NoXaml binaries, you need to omit the BasedOn attribute.
-
Set the style as the CheckBoxStyle of the GridViewSelectColumn.
<telerik:GridViewSelectColumn CheckBoxStyle="{StaticResource LargeCheckBoxStyle}" />
Alternatively you can edit the default control template of the checkbox and increase the sizes of its composing elements.
A similar approach can also be applied to the checkbox in the header of the RadGridView control by specifying a custom style as the HeaderCheckBoxStyle.