RadioButton

The RadioButton control works similarly to the CheckBox, differing in that this enables one choice among several alternatives, but basically it exposes the same properties. The following XAML code declares two RadioButton controls:

image

Each instance exposes the IsChecked property and the Checked and Unchecked events. For this, take a look back at the CheckBox discussion. Figure 32.15 shows how the controls look.

Figure 32.15 Adding RadioButton selection.

image

Get Visual Basic® 2010 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.