Share via

DisplayInformation.AutoRotationPreferences Property


Gets and sets the preferred orientation of the app.

 static property DisplayOrientations AutoRotationPreferences { DisplayOrientations get(); void set(DisplayOrientations value); };
static DisplayOrientations AutoRotationPreferences();

static void AutoRotationPreferences(DisplayOrientations value);
public static DisplayOrientations AutoRotationPreferences { get; set; }
var displayOrientations = DisplayInformation.autoRotationPreferences;
DisplayInformation.autoRotationPreferences = displayOrientations;
Public Shared Property AutoRotationPreferences As DisplayOrientations

Property Value

The orientation of a rectangular monitor.


This property is static.

The operating system is not obligated to honor the app's auto-rotation preferences. In particular, the preferences are not respected in overlapped windowing mode.

Applies to