SpatialStageFrameOfReference.CurrentChanged SpatialStageFrameOfReference.CurrentChanged SpatialStageFrameOfReference.CurrentChanged SpatialStageFrameOfReference.CurrentChanged SpatialStageFrameOfReference.CurrentChanged Event

Definition

Occurs when the user changes or redefines the current spatial stage.

public : event EventHandler<Platform::Object> CurrentChanged
// Register
event_token CurrentChanged(EventHandler<Platform::Object> const& handler) const;

// Revoke with event_token
void CurrentChanged(event_token const& cookie) const;

// Revoke with event_revoker
CurrentChanged_revoker CurrentChanged(auto_revoke_t, EventHandler<Platform::Object> const& handler) const;
public event EventHandler<object> CurrentChanged
Public Event CurrentChanged As EventHandler (Of object)
function onCurrentChanged(eventArgs){/* Your code */}


spatialStageFrameOfReference.addEventListener("currentchanged", onCurrentChanged);
spatialStageFrameOfReference.removeEventListener("currentchanged", onCurrentChanged);

Remarks

When this occurs, inspect the Current property again to get the latest stage instance.