Windows apps
Collapse the table of content
Expand the table of content

States panel (XAML)

You can use the States panel to create interactivity between different states of your app by first creating a visual states group, and then defining a different appearance for each visual state.

A state group contains any visual states that are part of the same logical category. Different states from the same visual state group cannot be displayed at the same time. In other words, in a well-defined control, changes (animations or keyframes) in only one state from each state group can be applied at any given time.

By adding transitions, you can extend the amount of time that it takes to transition between states when a state change occurs. You can set the transition duration for an entire state group or for specific combinations of states. You can also use the States panel to create theme animations.


Base   The normal (base) visual state of the object or app.


EasingFunction   Use to change animation interpolation between keyframes.


Add state   Use to create a new visual state.


Add state group   Use to create a new visual state group.


Turn on or off transition preview   Use to turn transition previews on or off.


Visual state group   Expand or collapse to show or hide the visual states contained within the visual state group.


Remove state group   Use to delete a selected visual state group.


Turn off recording mode   Use to turn visual state recording off or on.


Transition duration   Use to set the transition duration.


Pin the preview of this state   Use to pin the preview of the currently selected visual state.


Delete state   Use to delete a visual state.


Transition   Shows a transition of 0.6 seconds between two visual states.


Add transition   Use to add a transition between two or more visual states.

© 2018 Microsoft