DisplayProperties.OrientationChanged DisplayProperties.OrientationChanged DisplayProperties.OrientationChanged DisplayProperties.OrientationChanged DisplayProperties.OrientationChanged Event

Definition

Note

DisplayProperties may be altered or unavailable for releases after Windows 8.1. Instead, use DisplayInformation.

Occurs when either the CurrentOrientation or NativeOrientation property changes because of a mode change or a monitor change.

public : event DisplayPropertiesEventHandler OrientationChanged
// Register
event_token OrientationChanged(DisplayPropertiesEventHandler const& handler) const;

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

// Revoke with event_revoker
OrientationChanged_revoker OrientationChanged(auto_revoke_t, DisplayPropertiesEventHandler const& handler) const;
public event DisplayPropertiesEventHandler OrientationChanged
Public Event OrientationChanged As DisplayPropertiesEventHandler
function onOrientationChanged(eventArgs){/* Your code */}


displayProperties.addEventListener("orientationchanged", onOrientationChanged);
displayProperties.removeEventListener("orientationchanged", onOrientationChanged);