Represents the visual behavior that occurs when a control transitions from one state to another.
Assembly: PresentationFramework (in PresentationFramework.dll)
Gets or sets the name of the VisualState to transition from.
Gets or sets the time that it takes to move from one state to another.
Gets or sets a custom mathematical formula that is used to transition between states.
Gets a value that indicates whether this instance is currently sealed (read-only).(Inherited from DependencyObject.)
Gets or sets the Storyboard that occurs when the transition occurs.
Gets or sets the name of the VisualState to transition to.
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.)
Re-evaluates the effective value for the specified dependency property(Inherited from DependencyObject.)
Returns a string that represents the current object.(Inherited from Object.)
You can specify the visual behavior of a control when it transitions between states by addingobjects. When you create a , you specify one or more of the following:
Legacy Code Example
The following example creates a Customizing the Appearance of an Existing Control by Creating a ControlTemplate.that specifies that when the user moves the mouse away from the control, the control's border changes to blue, then to yellow, and then to black in 1.5 seconds. For the entire example, see Code snippet is not found. Confirm that the code snippet name 'VSMButtonTemplate' is correct.
Available since 4.0
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.