VisualTransition.GeneratedDuration Property

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Gets or sets the time that it takes to move from one state to another.

Namespace:   System.Windows
Assembly:  PresentationFramework (in PresentationFramework.dll)

[<TypeConverterAttribute(typeof(DurationConverter))>]
member GeneratedDuration : Duration with get, set

Property Value

Type: System.Windows.Duration

The 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
Return to top
Show: