protected override void OnGesturesManager_GestureReceived(object sender, GestureEventArgs e)
 {
     if (UseGestureSegment)
     {
         if (e.ContainsSegment(GestureSegment))
         {
             OnGestureDetected(e);
         }
     }
     else if (e.GestureSegments.Length == 0)
     {
         OnGestureDetected(e);
     }
 }
예제 #2
0
        protected override void OnGesturesManager_GestureReceived(object sender, GestureEventArgs e)
        {
            // Whole gesture is triggered when there are no segments in the event
            if (e.IsWholeGesture)
            {
                OnTrigger.Invoke();
            }

            // Fire segment events
            foreach (var trigger in SegmentTriggers)
            {
                if (e.ContainsSegment(trigger.Segment))
                {
                    trigger.OnTrigger.Invoke();
                }
            }
        }