private void OnGestureHoldCanceled(SpatialGestureRecognizer sender, SpatialHoldCanceledEventArgs args) { if (this.HoldCanceledEvent != null) { WaveForegroundTask.Run(() => { this.HoldCanceledEvent( this.service, (SpatialSource)args.InteractionSourceKind, this.mixedRealityApplication.HeadRay); }); } }
void Hold_HoldCanceled(SpatialGestureRecognizer sender, SpatialHoldCanceledEventArgs args) { Application.InvokeOnMain(() => app.OnGestureHoldCanceled()); }