在WPF中使用单选按钮 [英] using radio buttons in wpf

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

问题描述

如何为单选按钮分配一组控件,我希望UI根据单选按钮的值显示一组控件,

how do i assign a set of controls to a radiobutton , i want the UI to display a set of controls depending on the value of the radio button ,

推荐答案

将一组控件分配给RadioButton"之类的表达式称为乱码.请参见 http://en.wikipedia.org/wiki/Gibberish [ ^ ].

您可以将另一个RadioButton引用分配给RadioButton变量,或从RadioButton派生的类的实例,句点,其他都没有.

—SA
The expression like "assign a set of controls to a RadioButton" is called gibberish. See http://en.wikipedia.org/wiki/Gibberish[^].

You can assign another RadioButton reference to a RadioButton variable, or an instance of the class derived from RadioButton, nothing else, period.

—SA


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

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