本文介绍了我可以使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吗?
发布评论