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

Responding to Visual State Changes

The states defined by each control are grouped into mutually exclusive state groups. For example, Button has four states in a group called CommonStatesNormal, PointerOver, Pressed, and Disabled—and three states in a group called FocusStatesUnfocused, Focused, and PointerFocused. At any time, Button is in one state from every group, so it is Normal and Unfocused by default. This grouping mechanism exists to avoid a long list of states meant to cover every combination of independent properties (such as NormalUnfocused, NormalFocused, PointerOverUnfocused, 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 ...

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