CheckBox

CheckBox, shown in Figure 9.11, is a familiar control. But wait a minute...aren’t we in the middle of talking about buttons? Yes, but consider the characteristics of a CheckBox:

It has a single piece of externally supplied content (so the standard check box doesn’t count).

It has a notion of being clicked by pointer or keyboard.

It retains a state of being checked or unchecked when clicked.

It supports a three-state mode, where the state toggles from checked to indeterminate to unchecked.

Image

FIGURE 9.11 The CheckBox control, with all three IsChecked states shown

Does this sound familiar? It should, because a CheckBox is nothing ...

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.