O'Reilly logo

XAML Unleashed by Adam Nathan

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

RadioButton

RadioButton is another control that derives from ToggleButton, but it is unique because it has built-in support for mutual exclusion. When multiple RadioButton controls are grouped together, only one can be checked at a time. Checking one RadioButton—even programmatically—automatically unchecks all others in the same group. In fact, users can’t directly uncheck a RadioButton by clicking it; unchecking can be done only programmatically. Therefore, RadioButton is designed for multiple-choice questions. Figure 9.4 shows the default appearance of a RadioButton.

Image

FIGURE 9.4 The RadioButton, with all three IsChecked states shown

The rarely ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required