VisualTransition.GeneratedDuration Property

Definition

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

public:
 property System::Windows::Duration GeneratedDuration { System::Windows::Duration get(); void set(System::Windows::Duration value); };
[System.ComponentModel.TypeConverter(typeof(System.Windows.DurationConverter))]
public System.Windows.Duration GeneratedDuration { get; set; }
[<System.ComponentModel.TypeConverter(typeof(System.Windows.DurationConverter))>]
member this.GeneratedDuration : System.Windows.Duration with get, set
Public Property GeneratedDuration As Duration

Property Value

The time that it takes to move from one state to another.

Attributes

Examples

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" />

Remarks

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.

Applies to