Delen via


MediaCaptureRelativePanelWatcher.Changed Event

Definition

Raised when the relative location of the panel being monitored by the MediaCaptureRelativePanelWatcher changes.

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

Event Type

Remarks

This event may be raised on any thread. If you make UI updates in the handler for this event, be sure to dispatch them to the UI thread by making the updates within a call to CoreDispatcher.RunAsync.

Apps should implement a handler for the DisplayRegion.Changed Event that is raised whenever the DisplayRegion associated with the watcher changes. In this handler, apps should dispose of the watcher object, recreate the object, and reregister a handler for the MediaCaptureRelativePanelWatcher.Changed event.

Applies to