DisplayInformation.AdvancedColorInfoChanged Event
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
TypedEventHandler<DisplayInformation,IInspectable>
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
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for