Compartir a través de


DisplayProperties.NativeOrientation Propiedad

Definición

Nota

DisplayProperties puede modificarse o no estar disponible para las versiones después de Windows 8.1. En su lugar, use DisplayInformation.

Obtiene la orientación nativa del monitor de pantalla, que suele ser la orientación en la que los botones del dispositivo coinciden con la orientación del monitor.

public:
 static property DisplayOrientations NativeOrientation { DisplayOrientations get(); };
/// [get: Windows.Foundation.Metadata.Deprecated("DisplayProperties may be altered or unavailable for releases after Windows Phone 8.1. Instead, use DisplayInformation.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, Windows.Foundation.UniversalApiContract)]
static DisplayOrientations NativeOrientation();
/// [get: Windows.Foundation.Metadata.Deprecated("DisplayProperties may be altered or unavailable for releases after Windows Phone 8.1. Instead, use DisplayInformation.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, "Windows.Foundation.UniversalApiContract")]
static DisplayOrientations NativeOrientation();
public static DisplayOrientations NativeOrientation { [Windows.Foundation.Metadata.Deprecated("DisplayProperties may be altered or unavailable for releases after Windows Phone 8.1. Instead, use DisplayInformation.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, typeof(Windows.Foundation.UniversalApiContract))] get; }
public static DisplayOrientations NativeOrientation { [Windows.Foundation.Metadata.Deprecated("DisplayProperties may be altered or unavailable for releases after Windows Phone 8.1. Instead, use DisplayInformation.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, "Windows.Foundation.UniversalApiContract")] get; }
var displayOrientations = DisplayProperties.nativeOrientation;
Public Shared ReadOnly Property NativeOrientation As DisplayOrientations

Valor de propiedad

Orientación nativa del monitor de pantalla.

Atributos

Se aplica a