VisualStateManager.RaiseCurrentStateChanged メソッド

定義

派生クラスでオーバーライドされると、指定した VisualStateGroupCurrentStateChanged イベントが発生します。

protected:
 virtual void RaiseCurrentStateChanged(VisualStateGroup ^ stateGroup, VisualState ^ oldState, VisualState ^ newState, Control ^ control) = RaiseCurrentStateChanged;
void RaiseCurrentStateChanged(VisualStateGroup const& stateGroup, VisualState const& oldState, VisualState const& newState, Control const& control);
protected void RaiseCurrentStateChanged(VisualStateGroup stateGroup, VisualState oldState, VisualState newState, Control control);
function raiseCurrentStateChanged(stateGroup, oldState, newState, control)
Protected Sub RaiseCurrentStateChanged (stateGroup As VisualStateGroup, oldState As VisualState, newState As VisualState, control As Control)

パラメーター

stateGroup
VisualStateGroup

CurrentStateChanging イベントが発生したオブジェクト。

oldState
VisualState

コントロールの遷移元の状態。

newState
VisualState

コントロールが遷移する状態。

control
Control

状態が遷移したコントロール。

注釈

この API は、カスタム VisualStateManager 動作を定義するシナリオの一部です。 このシナリオでオーバーライドする最も重要なメソッドは GoToStateCore です。これは、カスタム クラスの動作で状態の動作を変更するメソッドであるためです。 RaiseCurrentStateChanged と RaiseCurrentStateChanging の動作のオーバーライドは省略可能です。既定の実装によってイベントが発生する方法とタイミングは、カスタム クラスに適している可能性があります。

適用対象