我可以使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.