简体   繁体   中英

What is the point of groupBox in WFA in C#?

Is groupBox in WFA in C# usefull for something else than "just saying these components which are inside this groupBox belongs to one group"? Can I for example somehow get any information(get it from the groupBox not from the components inside) what happens inside or similar useful things?

Here is Microsoft's design guidelines for using Group Boxes:

http://msdn.microsoft.com/en-us/library/windows/desktop/aa511459.aspx

They say, "aside from possibly providing an access key for a group of controls, it provides no functionality". The access key being used most commonly in the Radio Button case.

我喜欢将groupBoxes用于“一次只能选择一个单选按钮”功能。

好吧,它作为您出于某种原因想要隐藏或显示其内容的容器很有用...

The typical use for a group box is to contain a logical group of RadioButton controls.If you have two group boxes, each of which contain several option buttons (also known as radio buttons), each group of buttons is mutually exclusive, setting one option value per group. MSDN

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM