Example #1
0
 void OnSwipedUp(System.Object sender, Xamarin.Forms.SwipedEventArgs e)
 {
     if (!_isExpanded)
     {
         SwipeView.TranslateTo(0, 0, 200, Easing.Linear);
         _isExpanded = true;
     }
 }
Example #2
0
        void SwipeToRight(System.Object sender, Xamarin.Forms.SwipedEventArgs e)
        {
            ApprovalViewModel ViewModel = new ApprovalViewModel();

            this.BindingContext = ViewModel;

            ViewModel.FooterNavigation(SessionService.BaseFooterItems[2]);
        }
        void SwipeToLeft(System.Object sender, Xamarin.Forms.SwipedEventArgs e)
        {
            MessageViewModel ViewModel = new MessageViewModel();

            this.BindingContext = ViewModel;

            ViewModel.FooterNavigation(SessionService.BaseFooterItems[3]);
        }
Example #4
0
        //var swipeGesture = new SwipeGestureRecognizer { Direction = SwipeDirection.Left | SwipeDirection.Right };

        void SwipeGestureRecognizer_Swiped(System.Object sender, Xamarin.Forms.SwipedEventArgs e)
        {
            switch (e.Direction)
            {
            case SwipeDirection.Left:
                SwipeAnswerOne.Text = "Please do something";
                break;
            }
        }
Example #5
0
        private async void SwipeGestureRecognizer_Right(object sender, Xamarin.Forms.SwipedEventArgs e)
        {
            if (sender is Grid)
            {
                (sender as Grid).TranslateTo((sender as Grid).X + 100, (sender as Grid).Y, 250);
                await Task.Delay(250);

                (sender as Grid).TranslateTo((sender as Grid).X, (sender as Grid).Y, 250);
            }
        }
Example #6
0
        void SwipeGestureRecognizer_Swiped(System.Object sender, Xamarin.Forms.SwipedEventArgs e)
        {
            Animation animateSection;

            if (IsMenuOpen)
            {
                animateSection = new Animation(d => menuContainer.WidthRequest = d, 300, 80);
            }
            else
            {
                animateSection = new Animation(d => menuContainer.WidthRequest = d, 80, 300);
            }
            animateSection.Commit(menuContainer, "MoreLikeSectionToggleAnimation", 16, 450, Easing.SpringIn);
            IsMenuOpen = !IsMenuOpen;
        }
Example #7
0
 void SwipeToRight(System.Object sender, Xamarin.Forms.SwipedEventArgs e)
 {
     ViewModel.FooterNavigation(SessionService.BaseFooterItems[1]);
 }
 async void SwipeGestureRecognizer_Swiped(System.Object sender, Xamarin.Forms.SwipedEventArgs e)
 {
     await Navigation.PopModalAsync();
 }
Example #9
0
 void SwipeToLeft(System.Object sender, Xamarin.Forms.SwipedEventArgs e)
 {
     vm.FooterNavigation(SessionService.BaseFooterItems[2]);
 }
Example #10
0
 void SwipeGestureRecognizer_Swiped(System.Object sender, Xamarin.Forms.SwipedEventArgs e)
 {
     ViewModel.FooterNavigation(SessionService.BaseFooterItems[1]);
 }