Jaa


DisplayInformation.AutoRotationPreferences Property

Definition

Gets and sets the preferred orientation of the app.

public:
 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.

Remarks

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