Compartilhar via


SpatialStageFrameOfReference.CurrentChanged Evento

Definição

Ocorre quando o usuário altera ou redefine o estágio espacial atual.

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

Comentários

Quando isso ocorrer, inspecione a propriedade Current novamente para obter a instância de estágio mais recente.

Aplica-se a