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.12 shows the default appearance of a RadioButton
.
The ...
Get Universal Windows® Apps with XAML and C# Unleashed now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.