Home > OS >  How many kinds of built-in VisualState are there in UWP?
How many kinds of built-in VisualState are there in UWP?

Time:05-10

For me, the known VisualStates are:

  • Pressed
  • Focused
  • UnFocused
  • PointerOver

but I want to know all the built-in VisualStates, and I have searched for a long time and still can't find the relevant information, does anyone know where I can find such information?

CodePudding user response:

How many kinds of built-in VisualState are there in UWP?

It's different with Xamarin Visual State Manager defines one visual state group named "CommonStates" with the following visual states: "Normal" "Disabled" "Focused" "Selected".

In UWP platform, it does not contain such default state. it is useful because such a VisualState will use whatever values are present in the default template. Each attribute should specify the state's x:Name attribute, which is the stateName value a control consumer would pass in a GoToState call to use that visual state. For more detail please refer to official document.

  • Related