Share via


DisplayInformation.OrientationChanged Evento

Definizione

Si verifica quando la proprietà CurrentOrientation o NativeOrientation cambia a causa di una modifica della modalità o di una modifica del monitoraggio.

// 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) 

Tipo evento

Commenti

L'evento OrientationChanged si verifica solo quando l'orientamento della visualizzazione o del monitoraggio cambia e non necessariamente quando cambia l'orientamento dell'app. Per determinare l'orientamento dell'app a scopo di layout, usa la proprietà ApplicationView.Value .

Si applica a