Orientation

Chapter 4, “Layout,” describes how you can detect orientation changes with the static DisplayProperties.OrientationChanged event. This enables you to detect landscape, landscape-flipped, portrait, and portrait-flipped orientations. There are two orientation-related sensor APIs, however, that expose richer data: SimpleOrientationSensor and OrientationSensor.

Get Universal Windows® Apps with XAML and C# Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.