GraphicsCaptureItem.Closed Event
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
An event raised when the target of the capture has been closed.
// Register
event_token Closed(TypedEventHandler<GraphicsCaptureItem, IInspectable const&> const& handler) const;
// Revoke with event_token
void Closed(event_token const* cookie) const;
// Revoke with event_revoker
GraphicsCaptureItem::Closed_revoker Closed(auto_revoke_t, TypedEventHandler<GraphicsCaptureItem, IInspectable const&> const& handler) const;
public event TypedEventHandler<GraphicsCaptureItem,object> Closed;
function onClosed(eventArgs) { /* Your code */ }
graphicsCaptureItem.addEventListener("closed", onClosed);
graphicsCaptureItem.removeEventListener("closed", onClosed);
- or -
graphicsCaptureItem.onclosed = onClosed;
Public Custom Event Closed As TypedEventHandler(Of GraphicsCaptureItem, Object)
Event Type
Remarks
Note that some apps may seamlessly replace the targeted window with a new one, which will end any ongoing capture and raise this event even though the target window does not appear to have closed.