DisplayInformation.AutoRotationPreferences Proprietà

Definizione

Ottiene e imposta l'orientamento preferito dell'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

Valore della proprietà

Orientamento di un monitor rettangolare.

Commenti

Questa proprietà è statica.

Il sistema operativo non è obbligato a rispettare le preferenze di rotazione automatica dell'app. In particolare, le preferenze non vengono rispettate in modalità di finestra sovrapposta.

Si applica a