Share via


DisplayInformation.OrientationChanged Événement

Définition

Se produit lorsque la propriété CurrentOrientation ou NativeOrientation change en raison d’un changement de mode ou d’un changement de moniteur.

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

Type d'événement

Remarques

L’événement OrientationChanged se produit uniquement lorsque l’orientation de l’affichage ou du moniteur change et pas nécessairement lorsque l’orientation de votre application change. Pour déterminer l’orientation de votre application à des fins de disposition, utilisez la propriété ApplicationView.Value .

S’applique à