VisualStateManager.RaiseCurrentStateChanged メソッド

定義

指定された CurrentStateChanging オブジェクトで VisualStateGroup イベントを発生させます。

protected:
 void RaiseCurrentStateChanged(System::Windows::VisualStateGroup ^ stateGroup, System::Windows::VisualState ^ oldState, System::Windows::VisualState ^ newState, System::Windows::FrameworkElement ^ control, System::Windows::FrameworkElement ^ stateGroupsRoot);
protected void RaiseCurrentStateChanged (System.Windows.VisualStateGroup stateGroup, System.Windows.VisualState oldState, System.Windows.VisualState newState, System.Windows.FrameworkElement control, System.Windows.FrameworkElement stateGroupsRoot);
member this.RaiseCurrentStateChanged : System.Windows.VisualStateGroup * System.Windows.VisualState * System.Windows.VisualState * System.Windows.FrameworkElement * System.Windows.FrameworkElement -> unit
Protected Sub RaiseCurrentStateChanged (stateGroup As VisualStateGroup, oldState As VisualState, newState As VisualState, control As FrameworkElement, stateGroupsRoot As FrameworkElement)

パラメーター

stateGroup
VisualStateGroup

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

oldState
VisualState

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

newState
VisualState

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

control
FrameworkElement

状態が遷移しているコントロール。

stateGroupsRoot
FrameworkElement

VisualStateManager を含んでいるルート要素。

例外

stateGroupsRootnull です。

または

newStatenull です。

注釈

VisualStateGroupが コントロールの にControlTemplate設定されている場合、controlパラメーターは を所有するコントロールに設定されますControlTemplateVisualStateGroupが にFrameworkElementcontrol設定されている場合、 は null であり、 パラメーターを使用するstateGroupsRoot必要があります。

注意 (継承者)

派生クラスでオーバーライドする RaiseCurrentStateChanged(VisualStateGroup, VisualState, VisualState, FrameworkElement, FrameworkElement) 場合は、登録されたデリゲートがイベントを受け取るように、基底クラスの RaiseCurrentStateChanged(VisualStateGroup, VisualState, VisualState, FrameworkElement, FrameworkElement) メソッドを必ず呼び出してください。

適用対象