调整单选按钮的大小 [英] Sizing the radiobutton

查看:119
本文介绍了调整单选按钮的大小的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在可触摸的应用程序中有一些单选按钮. 因为最终用户的手指可能很粗,所以我想使单选按钮的圆圈和文本变大.

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.

推荐答案

这应该对您有用.

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

另一种替代方法是为RadioButton编写自己的ControlTemplate并根据需要更改其外观.

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

这篇关于调整单选按钮的大小的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆