SpatialStageFrameOfReference.CurrentChanged Evento
Definizione
Importante
Alcune informazioni sono relative alla release non definitiva del prodotto, che potrebbe subire modifiche significative prima della release definitiva. Microsoft non riconosce alcuna garanzia, espressa o implicita, in merito alle informazioni qui fornite.
Si verifica quando l'utente cambia o ridefinisce la fase spaziale corrente.
// 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 evento
Commenti
In questo caso, controllare di nuovo la proprietà Current per ottenere l'istanza di fase più recente.