Share via


CompositorController.CommitNeeded Event

Definition

Occurs when the framework needs to call Commit in order for changes to Composition objects to be reflected onscreen.

// Register
event_token CommitNeeded(TypedEventHandler<CompositorController, IInspectable const&> const& handler) const;

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

// Revoke with event_revoker
CompositorController::CommitNeeded_revoker CommitNeeded(auto_revoke_t, TypedEventHandler<CompositorController, IInspectable const&> const& handler) const;
public event TypedEventHandler<CompositorController,object> CommitNeeded;
function onCommitNeeded(eventArgs) { /* Your code */ }
compositorController.addEventListener("commitneeded", onCommitNeeded);
compositorController.removeEventListener("commitneeded", onCommitNeeded);
- or -
compositorController.oncommitneeded = onCommitNeeded;
Public Custom Event CommitNeeded As TypedEventHandler(Of CompositorController, Object) 

Event Type

Applies to