The states defined by each control are grouped into mutually exclusive state groups. For example,
Button has four states in a group called
Disabled—and three states in a group called
PointerFocused. At any time,
Button is in one state from every group, so it is
Unfocused by default. This grouping mechanism exists to avoid a long list of states meant to cover every combination of independent properties (such as
PointerOverFocused, and so on).
A template for
Button can express modifications to make to its elements when transitioning to each state. This is done by assigning ...