DisplayInformation.ColorProfileChanged Événement
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Se produit lorsque le profil de couleur de l’affichage physique change.
// Register
event_token ColorProfileChanged(TypedEventHandler<DisplayInformation, IInspectable const&> const& handler) const;
// Revoke with event_token
void ColorProfileChanged(event_token const* cookie) const;
// Revoke with event_revoker
DisplayInformation::ColorProfileChanged_revoker ColorProfileChanged(auto_revoke_t, TypedEventHandler<DisplayInformation, IInspectable const&> const& handler) const;
public event TypedEventHandler<DisplayInformation,object> ColorProfileChanged;
function onColorProfileChanged(eventArgs) { /* Your code */ }
displayInformation.addEventListener("colorprofilechanged", onColorProfileChanged);
displayInformation.removeEventListener("colorprofilechanged", onColorProfileChanged);
- or -
displayInformation.oncolorprofilechanged = onColorProfileChanged;
Public Custom Event ColorProfileChanged As TypedEventHandler(Of DisplayInformation, Object)
Type d'événement
TypedEventHandler<DisplayInformation,IInspectable>
Remarques
L’événement ColorProfileChanged n’est déclenché que lorsque le profil de couleur de l’affichage change. Vous devez ensuite appeler la méthode DisplayInformation.GetColorProfileAsync pour récupérer de façon asynchrone le nouveau profil de couleur.
S’applique à
Commentaires
https://aka.ms/ContentUserFeedback.
Bientôt disponible : Tout au long de 2024, nous allons supprimer progressivement GitHub Issues comme mécanisme de commentaires pour le contenu et le remplacer par un nouveau système de commentaires. Pour plus d’informations, consultezEnvoyer et afficher des commentaires pour