我可以使WPF单选按钮看起来像CheckBoxes吗? [英] Can I make WPF RadioButtons look like CheckBoxes?

查看:55
本文介绍了我可以使WPF单选按钮看起来像CheckBoxes吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我希望具有RadioButtons的行为,但向用户显示为CheckBoxes。

I want to have the behavior of RadioButtons, but show them as CheckBoxes to the user. Is this easy to do?

推荐答案

是的,您可以使用ControlTemplate轻松完成。编辑CheckBox的模板并将其复制到您的RadioButton中。

Yes you can easily do using a ControlTemplate. Edit the template of a CheckBox and copy it to your RadioButton.

我同意您应该谨慎行事,因为这样很容易使用户感到困惑。

I agree that you should do this with caution as you easily can confuse the user.

这篇关于我可以使WPF单选按钮看起来像CheckBoxes吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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