VisualTransition::GeneratedDuration Property
.NET Framework (current version)
Gets or sets the time that it takes to move from one state to another.
Assembly: PresentationFramework (in PresentationFramework.dll)
public: [TypeConverterAttribute((DurationConverter^::typeid))] property Duration GeneratedDuration { Duration get(); void set(Duration value); }
Property Value
Type: System.Windows::DurationThe time that it takes to move from one state to another.
You can specify how long a transition takes by setting the GeneratedDuration property. When you set the GeneratedDuration property, you are specifying the time that it takes for the transition to occur.
The following example specifies that the control takes one half second to go into the MouseOver state. For the entire example, see Customizing the Appearance of an Existing Control by Creating a ControlTemplate.
<!--Take one half second to trasition to the MouseOver state.--> <VisualTransition To="MouseOver" GeneratedDuration="0:0:0.5" />
.NET Framework
Available since 4.0
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Available since 4.0
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Show: