DisplayInformation.DisplayContentsInvalidated イベント

定義

表示に再描画が必要な場合に発生します。

// 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) 

イベントの種類

注釈

このイベントは静的です。

このイベントは静的であるため、 DisplayInformation.GetForCurrentView メソッドの呼び出しから取得する現在の物理表示情報からではなく、 DisplayInformation オブジェクトから直接アクセスすることをお勧めします。

適用対象