DisplayInformation.AutoRotationPreferences Eigenschaft

Definition

Ruft die bevorzugte Ausrichtung der App ab und legt sie fest.

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

Eigenschaftswert

Die Ausrichtung eines rechteckigen Monitors.

Hinweise

Diese Eigenschaft ist statisch.

Das Betriebssystem ist nicht verpflichtet, die Einstellungen für die automatische Drehung der App zu berücksichtigen. Insbesondere werden die Einstellungen im überlappenden Fenstermodus nicht berücksichtigt.

Gilt für: