다음을 통해 공유


VisualStateGroup.CurrentStateChanged 이벤트

정의

컨트롤이 다른 상태로 변경된 후에 발생합니다.

public:
 virtual event VisualStateChangedEventHandler ^ CurrentStateChanged;
// Register
event_token CurrentStateChanged(VisualStateChangedEventHandler const& handler) const;

// Revoke with event_token
void CurrentStateChanged(event_token const* cookie) const;

// Revoke with event_revoker
VisualStateGroup::CurrentStateChanged_revoker CurrentStateChanged(auto_revoke_t, VisualStateChangedEventHandler const& handler) const;
public event VisualStateChangedEventHandler CurrentStateChanged;
function onCurrentStateChanged(eventArgs) { /* Your code */ }
visualStateGroup.addEventListener("currentstatechanged", onCurrentStateChanged);
visualStateGroup.removeEventListener("currentstatechanged", onCurrentStateChanged);
- or -
visualStateGroup.oncurrentstatechanged = onCurrentStateChanged;
Public Custom Event CurrentStateChanged As VisualStateChangedEventHandler 

이벤트 유형

적용 대상