ApplicationView.Orientation 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 the current orientation (landscape or portrait) of the window (app view) with respect to the display.
public:
property ApplicationViewOrientation Orientation { ApplicationViewOrientation get(); };
ApplicationViewOrientation Orientation();
public ApplicationViewOrientation Orientation { get; }
var applicationViewOrientation = applicationView.orientation;
Public ReadOnly Property Orientation As ApplicationViewOrientation
Property Value
The current orientation of the calling window.
Remarks
For an example of using the Orientation property, see the Application Views sample.
The property is a nonstatic member of the window object. For JavaScript, this means that it is a method of the window object that getForCurrentView creates, not of the ApplicationView class.
Applies to
Opinia
https://aka.ms/ContentUserFeedback.
Dostępne już wkrótce: W 2024 r. będziemy stopniowo wycofywać zgłoszenia z serwisu GitHub jako mechanizm przesyłania opinii na temat zawartości i zastępować go nowym systemem opinii. Aby uzyskać więcej informacji, sprawdź:Prześlij i wyświetl opinię dla