इसके माध्यम से साझा किया गया


DisplayInformation.AdvancedColorInfoChanged Event

Definition

Raised when the advanced color information is changed.

// Register
event_token AdvancedColorInfoChanged(TypedEventHandler<DisplayInformation, IInspectable const&> const& handler) const;

// Revoke with event_token
void AdvancedColorInfoChanged(event_token const* cookie) const;

// Revoke with event_revoker
DisplayInformation::AdvancedColorInfoChanged_revoker AdvancedColorInfoChanged(auto_revoke_t, TypedEventHandler<DisplayInformation, IInspectable const&> const& handler) const;
public event TypedEventHandler<DisplayInformation,object> AdvancedColorInfoChanged;
function onAdvancedColorInfoChanged(eventArgs) { /* Your code */ }
displayInformation.addEventListener("advancedcolorinfochanged", onAdvancedColorInfoChanged);
displayInformation.removeEventListener("advancedcolorinfochanged", onAdvancedColorInfoChanged);
- or -
displayInformation.onadvancedcolorinfochanged = onAdvancedColorInfoChanged;
Public Custom Event AdvancedColorInfoChanged As TypedEventHandler(Of DisplayInformation, Object) 

Event Type

Windows requirements

Device family
Windows 10, version 1803 (introduced in 10.0.17134.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v6.0)

Remarks

This is an event registration API which will register an event notification for the UWP apps so that they can be notified whenever there is any change in the Advanced Color info on the monitor corresponding to their CoreWindow. The app can then call the GetAdvancedColorInfo API to know the latest capabilities and state. The app needs to track which values are changed and respond accordingly if needed, event API will not indicate which values changed. Note that this event will remove any existing notification which the app previously registered for changes in Advanced Color info.

Applies to