Change checkbox size WPF Change checkbox size WPF wpf wpf

Change checkbox size WPF


How about this?

<CheckBox>    <CheckBox.LayoutTransform>        <ScaleTransform ScaleX="2" ScaleY="2" />    </CheckBox.LayoutTransform></CheckBox>

You can use double values for ScaleX and ScaleY if the integer values are not exactly what you want.


The default ControlTemplates can be found on MSDN (see Default WPF Themes link).

Make sure to add the respective themes namespace to your xaml file to reference the necessary theme controls.

<theme:BulletChrome Background="{TemplateBinding Background}"                    BorderBrush="{TemplateBinding BorderBrush}"                    RenderMouseOver="{TemplateBinding IsMouseOver}"                    RenderPressed="{TemplateBinding IsPressed}"                    IsChecked="{TemplateBinding IsChecked}"/>

I am not sure if you can just specify it generically, you might need to add references too.

The problem here is that you cannot really specify a border size either since the control encapsulates it.