GeneratedDuration Property
Collapse the table of content
Expand the table of content

VisualTransition.GeneratedDuration Property

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

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

Namespace:  System.Windows
Assembly:  System.Windows (in System.Windows.dll)
XMLNS for XAML: Not mapped to an xmlns.

'Declaration
Public Property GeneratedDuration As Duration
<object GeneratedDuration="duration"/>

Property Value

Type: System.Windows.Duration
The amount of time 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 amount of time it takes for the transition to occur.

The following example specifies that the control takes one half second to go into the MouseOver state.


<!--Take one half second to trasition to the MouseOver state.-->
<VisualTransition To="MouseOver" 
                      GeneratedDuration="0:0:0.5" />


Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2017 Microsoft