private void OnGestureRecognized(object sender, GestureRecognizedEventArgs e)
        {
            if (SlideShowCommandDetected != null)
            {
                SlideShowCommandDetectedEventArgs args = null;

                switch (e.Result.GestureSubType)
                {
                    case GESTURE_COMMAND_NEXT:
                        args = new SlideShowCommandDetectedEventArgs(SlideShowCommandType.Next);
                        break;
                    case GESTURE_COMMAND_PREVIOUS:
                        args = new SlideShowCommandDetectedEventArgs(SlideShowCommandType.Previous);
                        break;
                }

                SlideShowCommandDetected(this, args);
            }
        }
 private void OnGestureRecognized(object sender, GestureRecognizedEventArgs e)
 {
     if (GestureRecognized != null)
     {
         GestureRecognized(this, e);
     }
 }