Inheritance: ICrossSlidingEventArgs
        void gestureRecognizer_CrossSliding(GestureRecognizer sender, Windows.UI.Input.CrossSlidingEventArgs args)
        {
            if (args.CrossSlidingState == CrossSlidingState.Started)
            {
                xpoint = args.Position.X;
            }

            if (args.CrossSlidingState == CrossSlidingState.Completed)
            {
                if (xpoint == -1)
                {
                    return;
                }

                if (args.Position.X - xpoint > 0)
                {
                    OpenMenu();
                }
                else
                {
                    CloseMenu();
                }

                xpoint = -1;
            }
        }
 private void OnCrossSlidingToAxe(GestureRecognizer sender, CrossSlidingEventArgs args)
 {
     //args.CrossSlidingState == CrossSlidingState.Started;
 }
        void gr_CrossSliding(Windows.UI.Input.GestureRecognizer sender, Windows.UI.Input.CrossSlidingEventArgs args)
        {
#if (DEBUG)
            System.Diagnostics.Debug.WriteLine("gr_CrossSliding");
#endif
        }
 /// <summary>
 /// 
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="args"></param>
 void OnCrossSliding(GestureRecognizer sender, CrossSlidingEventArgs args)
 {
     //SIUC311.MainPage.Current.NotifyUser("SLIDE", SIUC311.NotifyType.QueueMessage);
 }
 private void GestureRecognizer_CrossSliding(GestureRecognizer sender, CrossSlidingEventArgs args)
 {
     TxtGestureNotes.Text = "Slide/swipe gesture recognized on cross horizontal";
 }
Esempio n. 6
0
 protected virtual void OnHorizontalSwipe(GestureRecognizer sender, CrossSlidingEventArgs args)
 {
     var handler = HorizontalSwipe;
     if (handler != null) handler(sender, args);
 }
Esempio n. 7
0
 void gestureRecognizer_CrossSliding(GestureRecognizer sender, CrossSlidingEventArgs args)
 {
     OnHorizontalSwipe(sender, args);
 }