DisplayInformation.AutoRotationPreferences Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Váš názor
https://aka.ms/ContentUserFeedback.
Připravujeme: V průběhu roku 2024 budeme postupně vyřazovat problémy z GitHub coby mechanismus zpětné vazby pro obsah a nahrazovat ho novým systémem zpětné vazby. Další informace naleznete v tématu:Odeslat a zobrazit názory pro