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 설정된 경우 매개 변수는 를 소유ControlTemplate하는 컨트롤 control 로 설정됩니다. 가 VisualStateGroupFrameworkElementcontrol 설정된 경우 는 이 null 고 매개 변수를 stateGroupsRoot 사용해야 합니다.

상속자 참고

재정의 하는 경우 RaiseCurrentStateChanged(VisualStateGroup, VisualState, VisualState, FrameworkElement, FrameworkElement) 파생된 클래스에서 호출 해야 기본 클래스 RaiseCurrentStateChanged(VisualStateGroup, VisualState, VisualState, FrameworkElement, FrameworkElement) 메서드 등록 된 대리자가 이벤트를 받도록 합니다.

적용 대상