Dela via


DisplayInformation.DisplayContentsInvalidated Event

Definition

Occurs when the display requires redrawing.

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

// Revoke with event_token
static void DisplayContentsInvalidated(event_token const* cookie) const;

// Revoke with event_revoker
static DisplayInformation::DisplayContentsInvalidated_revoker DisplayContentsInvalidated(auto_revoke_t, TypedEventHandler<DisplayInformation, IInspectable const&> const& handler) const;
public static event TypedEventHandler<DisplayInformation,object> DisplayContentsInvalidated;
function onDisplayContentsInvalidated(eventArgs) { /* Your code */ }
Windows.Graphics.Display.DisplayInformation.addEventListener("displaycontentsinvalidated", onDisplayContentsInvalidated);
Windows.Graphics.Display.DisplayInformation.removeEventListener("displaycontentsinvalidated", onDisplayContentsInvalidated);
- or -
Windows.Graphics.Display.DisplayInformation.ondisplaycontentsinvalidated = onDisplayContentsInvalidated;
Public Shared Custom Event DisplayContentsInvalidated As TypedEventHandler(Of DisplayInformation, Object) 

Event Type

Remarks

This event is static.

Because this event is static, we recommend that you directly access it from the DisplayInformation object and not from the current physical display info that you get from a call to the DisplayInformation.GetForCurrentView method.

Applies to