次の方法で共有


DisplayProperties.DisplayContentsInvalidated イベント

定義

注意

displayProperties は、Windows 8.1した後にリリースで変更または使用できない場合があります。 代わりに、 DisplayInformation を使用します

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

public:
 static event DisplayPropertiesEventHandler ^ DisplayContentsInvalidated;
/// [add: Windows.Foundation.Metadata.Deprecated("DisplayProperties may be altered or unavailable for releases after Windows Phone 8.1. Instead, use DisplayInformation.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, Windows.Foundation.UniversalApiContract)]
/// [remove: Windows.Foundation.Metadata.Deprecated("DisplayProperties may be altered or unavailable for releases after Windows Phone 8.1. Instead, use DisplayInformation.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, Windows.Foundation.UniversalApiContract)]
// Register
static event_token DisplayContentsInvalidated(DisplayPropertiesEventHandler const& handler) const;

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

// Revoke with event_revoker
static DisplayProperties::DisplayContentsInvalidated_revoker DisplayContentsInvalidated(auto_revoke_t, DisplayPropertiesEventHandler const& handler) const;
/// [add: Windows.Foundation.Metadata.Deprecated("DisplayProperties may be altered or unavailable for releases after Windows Phone 8.1. Instead, use DisplayInformation.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, "Windows.Foundation.UniversalApiContract")]
/// [remove: Windows.Foundation.Metadata.Deprecated("DisplayProperties may be altered or unavailable for releases after Windows Phone 8.1. Instead, use DisplayInformation.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, "Windows.Foundation.UniversalApiContract")]
// Register
static event_token DisplayContentsInvalidated(DisplayPropertiesEventHandler const& handler) const;

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

// Revoke with event_revoker
static DisplayProperties::DisplayContentsInvalidated_revoker DisplayContentsInvalidated(auto_revoke_t, DisplayPropertiesEventHandler const& handler) const;
[add: Windows.Foundation.Metadata.Deprecated("DisplayProperties may be altered or unavailable for releases after Windows Phone 8.1. Instead, use DisplayInformation.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, typeof(Windows.Foundation.UniversalApiContract))]
[remove: Windows.Foundation.Metadata.Deprecated("DisplayProperties may be altered or unavailable for releases after Windows Phone 8.1. Instead, use DisplayInformation.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, typeof(Windows.Foundation.UniversalApiContract))]
public static event DisplayPropertiesEventHandler DisplayContentsInvalidated;
[add: Windows.Foundation.Metadata.Deprecated("DisplayProperties may be altered or unavailable for releases after Windows Phone 8.1. Instead, use DisplayInformation.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, "Windows.Foundation.UniversalApiContract")]
[remove: Windows.Foundation.Metadata.Deprecated("DisplayProperties may be altered or unavailable for releases after Windows Phone 8.1. Instead, use DisplayInformation.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, "Windows.Foundation.UniversalApiContract")]
public static event DisplayPropertiesEventHandler DisplayContentsInvalidated;
function onDisplayContentsInvalidated(eventArgs) { /* Your code */ }
Windows.Graphics.Display.DisplayProperties.addEventListener("displaycontentsinvalidated", onDisplayContentsInvalidated);
Windows.Graphics.Display.DisplayProperties.removeEventListener("displaycontentsinvalidated", onDisplayContentsInvalidated);
- or -
Windows.Graphics.Display.DisplayProperties.ondisplaycontentsinvalidated = onDisplayContentsInvalidated;
Public Shared Custom Event DisplayContentsInvalidated As DisplayPropertiesEventHandler 

イベントの種類

属性

DisplayProperties::DisplayContentsInvalidated({ this, &ShapesPuzzle::OnDisplayContentsInvalidated });
DisplayProperties::DisplayContentsInvalidated +=
    ref new DisplayPropertiesEventHandler(this, &ShapesPuzzle::OnDisplayContentsInvalidated);

適用対象