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パラメーターは、ControlTemplateを所有するコントロールに設定されます。 VisualStateGroupFrameworkElementが設定されている場合、controlnullされ、stateGroupsRoot パラメーターを使用する必要があります。

注意 (継承者)

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

適用対象