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); } }
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(); } } }