Share via


SpatialStageFrameOfReference.CurrentChanged Evento

Definición

Se produce cuando el usuario cambia o vuelve a definir la fase espacial actual.

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

Tipo de evento

Comentarios

Cuando esto ocurra, vuelva a inspeccionar la propiedad Current para obtener la instancia de fase más reciente.

Se aplica a