Prev | Current Page 375 | Next

Matthew MacDonald

"Pro WPF with VB 2008: Windows Presentation Foundation with .NET 3.5"

You can use it to create
more than one group in the same container or to create a single group that spans multiple
containers. Either way, the trick is simple??”just give all the radio buttons that belong together
the same group name.
Consider this example:



Group 1
Group 1
Group 1
Group 2




Group 3
Group 3
Group 3
Group 2



Here, there are two containers holding radio buttons, but three groups. The final radio
button at the bottom of each group box is part of a third group. In this example it makes for
a confusing design, but there may be some scenarios where you want to separate a specific
radio button from the pack in a subtle way without causing it to lose its group membership.
nTip You don??™t need to use the GroupBox container to wrap your radio buttons, but it??™s a common convention.
The GroupBox shows a border and gives you a caption that you can apply to your group of buttons.


Pages:
363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387