SpatialStageFrameOfReference.CurrentChanged Event

Definition

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

// Register
static event_token CurrentChanged(EventHandler<IInspectable> const& handler) const;

// Revoke with event_token
static void CurrentChanged(event_token const* cookie) const;

// Revoke with event_revoker
static SpatialStageFrameOfReference::CurrentChanged_revoker CurrentChanged(auto_revoke_t, EventHandler<IInspectable> const& handler) const;
public static event System.EventHandler<object> CurrentChanged;
function onCurrentChanged(eventArgs) { /* Your code */ }
Windows.Perception.Spatial.SpatialStageFrameOfReference.addEventListener("currentchanged", onCurrentChanged);
Windows.Perception.Spatial.SpatialStageFrameOfReference.removeEventListener("currentchanged", onCurrentChanged);
- or -
Windows.Perception.Spatial.SpatialStageFrameOfReference.oncurrentchanged = onCurrentChanged;
Public Shared Custom Event CurrentChanged As EventHandler(Of Object) 

Event Type

Remarks

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

Applies to