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