Search code examples
wpfsizegeometry

Sizing the radiobutton


I have some radiobuttons in an app that works with touch. Because the end-user can have thick fingers, I want to make the circle and text int he radiobutton bigger.

Problem is, I can only make the text bigger, not the circle in the radiobutton.

<RadioButton  VerticalAlignment="Center" x:Name="rbtnContainers" Click="SetContainers" FontSize="18">Containers</RadioButton>

Using height doesn't work either. It makes the radiobutton bigger, but the circle remains the same.

Any hint or answer is appreciated.


Solution

  • This should work for you.

    <Viewbox Height="40">
         <RadioButton></RadioButton>
    </Viewbox>
    

    another alternative is to write your own ControlTemplate for the RadioButton and change its appearance as you want.