Can you please extend CheckBox with a possibility to resize check?
In the touch screen app I must make a checkbox bigger. When I increase the font, only the text of the checkbox gets bigger.
I know there are several things that can be done to resize the check, but all of them are workarounds.
Currently, the most clean workaround is to put CheckBox inside ViewBox: link
This can be a good first issue:
MaterialDesignCheckBox (Line 48) <Setter Property="Height" Value="18"/>
<Setter Property="Width" Value="18"/>
<Viewbox Width="{TemplateBinding Width}" Height="{TemplateBinding Height}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
FlowDirection="LeftToRight">Now you can change the size of the CheckBox
<CheckBox Height="80" Width="80"/>
without workarounds.
I don't think the above solution will work as it will give the check box portion of the control the entire size. As a comment on PR #1286 indicates this effectively leaves the content hidden.
I think for this we want to do the following:
CheckBoxAssist class with an attached property of type double with the name CheckBoxSize. You can use the ToggleButtonAssist as an example.MaterialDesignCheckBox style set the default value of the attached property to be "18" . You can see an example of setting an attached property in a setter hereCheckBoxAssist.CheckBoxSize to both the Height and Width. This will require using a Binding not a TemplateBinding. You can see an example of this hereI'm having the same problem where controls are too small in touch based applications and don't properly scale when setting the size. Is there any update on this? Thanks
Most helpful comment
This can be a good first issue:
MaterialDesignCheckBox(Line 48)<Viewbox Width="{TemplateBinding Width}" Height="{TemplateBinding Height}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" FlowDirection="LeftToRight">Now you can change the size of the CheckBox
<CheckBox Height="80" Width="80"/>without workarounds.