DisplayInformation.OrientationChanged 이벤트

정의

모드 변경 또는 모니터 변경으로 인해 CurrentOrientation 또는 NativeOrientation 속성이 변경되는 경우에 발생합니다.

// Register
event_token OrientationChanged(TypedEventHandler<DisplayInformation, IInspectable const&> const& handler) const;

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

// Revoke with event_revoker
DisplayInformation::OrientationChanged_revoker OrientationChanged(auto_revoke_t, TypedEventHandler<DisplayInformation, IInspectable const&> const& handler) const;
public event TypedEventHandler<DisplayInformation,object> OrientationChanged;
function onOrientationChanged(eventArgs) { /* Your code */ }
displayInformation.addEventListener("orientationchanged", onOrientationChanged);
displayInformation.removeEventListener("orientationchanged", onOrientationChanged);
- or -
displayInformation.onorientationchanged = onOrientationChanged;
Public Custom Event OrientationChanged As TypedEventHandler(Of DisplayInformation, Object) 

이벤트 유형

설명

OrientationChanged 이벤트는 디스플레이 또는 모니터의 방향이 변경되고 앱의 방향이 변경되는 경우에만 발생합니다. 레이아웃을 위해 앱의 방향을 확인하려면 ApplicationView.Value 속성을 사용합니다.

적용 대상