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

Remarks

This is an event-registration API that will register an event notification so that your app will be notified whenever there is any change in the Advanced Color info on the monitor corresponding to your window. Your app can then call the GetAdvancedColorInfo API to know the latest capabilities and state. Your app needs to track which values have changed, and respond accordingly if needed. The event API doesn't indicate which values have changed.

Note

This event removes any existing event handler that your app previously registered for changes to Advanced Color info.

Applies to