Occurs when either the CurrentOrientation or NativeOrientation property changes because of a mode change or a monitor change.
Syntax
function onOrientationChanged(eventArgs) { /* Your code */ } // addEventListener syntax displayProperties.addEventListener("orientationchanged", onOrientationChanged); displayProperties.removeEventListener("orientationchanged", onOrientationChanged); - or - displayProperties.onorientationchanged = onOrientationChanged;
Event information
| Delegate | DisplayPropertiesEventHandler |
|---|
Remarks
The DisplayProperties.OrientationChanged event occurs only when orientation of the display or monitor changes and not necessarily when the orientation of your app changes. To determine the orientation of your app for layout purposes, use the ApplicationView.Value property.
Examples
_displayHandlerToken = DisplayProperties::OrientationChanged +=
ref new DisplayPropertiesEventHandler(this, &MainPage::Page_OrientationChanged);
Requirements
|
Minimum supported client | Windows 8 |
|---|---|
|
Minimum supported server | Windows Server 2012 |
|
Minimum supported phone | Windows Phone 8 |
|
Namespace |
|
|
Metadata |
|
See also
Build date: 2/25/2013