Share via


MediaCaptureRelativePanelWatcher.Changed イベント

定義

MediaCaptureRelativePanelWatcher によって監視されているパネルの相対位置が変更されたときに発生します。

// Register
event_token Changed(TypedEventHandler<MediaCaptureRelativePanelWatcher, IInspectable const&> const& handler) const;

// Revoke with event_token
void Changed(event_token const* cookie) const;

// Revoke with event_revoker
MediaCaptureRelativePanelWatcher::Changed_revoker Changed(auto_revoke_t, TypedEventHandler<MediaCaptureRelativePanelWatcher, IInspectable const&> const& handler) const;
public event TypedEventHandler<MediaCaptureRelativePanelWatcher,object> Changed;
function onChanged(eventArgs) { /* Your code */ }
mediaCaptureRelativePanelWatcher.addEventListener("changed", onChanged);
mediaCaptureRelativePanelWatcher.removeEventListener("changed", onChanged);
- or -
mediaCaptureRelativePanelWatcher.onchanged = onChanged;
Public Custom Event Changed As TypedEventHandler(Of MediaCaptureRelativePanelWatcher, Object) 

イベントの種類

注釈

このイベントは、任意のスレッドで発生する可能性があります。 このイベントのハンドラーで UI 更新を行う場合は、 必ず CoreDispatcher.RunAsync の呼び出し内で更新を行って UI スレッドにディスパッチしてください。

アプリでは、ウォッチャーに関連付けられている DisplayRegion が変更されるたびに発生する DisplayRegion.Changed イベントのハンドラーを実装する必要があります。 このハンドラーでは、アプリでウォッチャー オブジェクトを破棄し、オブジェクトを再作成し、 MediaCaptureRelativePanelWatcher.Changed イベントのハンドラーを再登録する必要があります。

適用対象