Partage via


DisplayProperties Classe

Définition

Remarque

DisplayProperties peut être modifié ou indisponible pour les versions après Windows 8.1. Utilisez plutôt DisplayInformation.

Fournit diverses propriétés liées à l’affichage physique. Pour la plupart de ces propriétés, la classe fournit des événements pour permettre aux clients de surveiller les modifications apportées aux propriétés.

public ref class DisplayProperties abstract sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [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)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class DisplayProperties final
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [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")]
class DisplayProperties final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[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))]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public static class DisplayProperties
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[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")]
public static class DisplayProperties
Public Class DisplayProperties
Héritage
Object Platform::Object IInspectable DisplayProperties
Attributs

Configuration requise pour Windows

Famille d’appareils
Windows 10 (introduit dans 10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduit dans v1.0)

Propriétés

AutoRotationPreferences

Notes

DisplayProperties peut être modifié ou indisponible pour les versions après Windows 8.1. Utilisez plutôt DisplayInformation.

Obtient et définit l’orientation préférée de l’application.

CurrentOrientation

Remarque

DisplayProperties peut être modifié ou indisponible pour les versions après Windows 8.1. Utilisez plutôt DisplayInformation.

Obtient l’orientation actuelle d’un moniteur rectangulaire.

LogicalDpi

Remarque

DisplayProperties peut être modifié ou indisponible pour les versions après Windows 8.1. Utilisez plutôt DisplayInformation.

Obtient les pixels par pouce logique de l’environnement actuel.

NativeOrientation

Remarque

DisplayProperties peut être modifié ou indisponible pour les versions après Windows 8.1. Utilisez plutôt DisplayInformation.

Obtient l’orientation native du moniteur d’affichage, qui est généralement l’orientation où les boutons de l’appareil correspondent à l’orientation du moniteur.

ResolutionScale

Notes

DisplayProperties peut être modifié ou indisponible pour les versions après Windows 8.1. Utilisez plutôt DisplayInformation.

Obtient le facteur d’échelle de la fenêtre d’application.

StereoEnabled

Notes

DisplayProperties peut être modifié ou indisponible pour les versions après Windows 8.1. Utilisez plutôt DisplayInformation.

Obtient une valeur qui indique si l’appareil prend en charge la 3D stéréoscopique.

Méthodes

GetColorProfileAsync()

Remarque

DisplayProperties peut être modifié ou indisponible pour les versions après Windows 8.1. Utilisez plutôt DisplayInformation.

Obtient de manière asynchrone le profil de couleur ICC (International Color Consortium) par défaut associé à l’affichage physique.

Événements

ColorProfileChanged

Notes

DisplayProperties peut être modifié ou indisponible pour les versions après Windows 8.1. Utilisez plutôt DisplayInformation.

Se produit lorsque le profil de couleur de l’affichage physique change.

DisplayContentsInvalidated

Notes

DisplayProperties peut être modifié ou indisponible pour les versions après Windows 8.1. Utilisez plutôt DisplayInformation.

Se produit lorsque l’affichage nécessite un redessinage.

LogicalDpiChanged

Remarque

DisplayProperties peut être modifié ou indisponible pour les versions après Windows 8.1. Utilisez plutôt DisplayInformation.

Se produit lorsque la propriété LogicalDpi change, car les pixels par pouce (PPI) de l’affichage changent.

OrientationChanged

Notes

DisplayProperties peut être modifié ou indisponible pour les versions après Windows 8.1. Utilisez plutôt DisplayInformation.

Se produit lorsque la propriété CurrentOrientation ou NativeOrientation change en raison d’un changement de mode ou d’un changement de moniteur.

StereoEnabledChanged

Notes

DisplayProperties peut être modifié ou indisponible pour les versions après Windows 8.1. Utilisez plutôt DisplayInformation.

Se produit lorsque la propriété StereoEnabled change en raison de la prise en charge des modifications 3D stéréoscopiques.

S’applique à