VisualTransition.GeneratedDuration プロパティ

定義

状態の遷移に必要な時間を取得または設定します。

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

プロパティ値

状態の遷移に必要な時間。

属性

次の例では、コントロールが状態に入 MouseOver るために 1/5 秒かかることを指定します。 例全体については、「 ControlTemplate を作成して既存のコントロールの外観をカスタマイズする」を参照してください。

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

注釈

プロパティを設定することで、切り替えにかかる時間を GeneratedDuration 指定できます。 プロパティを GeneratedDuration 設定するときは、遷移が発生するまでの時間を指定します。

適用対象