void tapImage_Tapped1(object sender1, EventArgs e1) { // handle the tap Button.Opacity = 0; LottieAnimation.Opacity = 0; label.Opacity = 0; label1.Opacity = 0; if ((IAnimatedView)_views[current] is View4) { Navigation.PushAsync(new Haj_Walk_Three()); return; } var currentView = _views[current - 1]; ((IAnimatedView)currentView).StartAnimation(); if (currentView is SoExcitedView) { SoExcitedView.instace.StartAnimation(); } if (currentView is BikingCoolView || currentView is Safa_Marwa) { Button.IsEnabled = true; Button.FadeTo(1, 900); label.FadeTo(1, 900); label1.FadeTo(1, 900); LottieAnimation.FadeTo(1, 900); } else { Button.Opacity = 0; LottieAnimation.Opacity = 0; label.Opacity = 0; label1.Opacity = 0; Button.IsEnabled = false; } Carousel.Position--; return; }
void tapImage_Tapped(object sender, EventArgs e) { Carousel.Position++; Button.Opacity = 0; LottieAnimation.Opacity = 0; label.Opacity = 0; label1.Opacity = 0; if ((IAnimatedView)_views[current] is View7) { Navigation.PushAsync(new Haj_Walk_Fourth()); return; } var currentView = _views[current + 1]; ((IAnimatedView)currentView).StartAnimation(); if (currentView is BikingCoolView || currentView is Safa_Marwa) { Button.IsEnabled = true; Button.FadeTo(1, 900); label.FadeTo(1, 900); label1.FadeTo(1, 900); LottieAnimation.FadeTo(1, 900); } else { Button.Opacity = 0; LottieAnimation.Opacity = 0; Button.IsEnabled = false; label.Opacity = 0; label1.Opacity = 0; } img.IsEnabled = false; Task.WaitAll(); return; }
void tapImage_Tapped1(object sender1, EventArgs e1) { if ((IAnimatedView)_views[current] is View11) { return; } // handle the tap Carousel.Position--; Button.Opacity = 0; LottieAnimation.Opacity = 0; label.Opacity = 0; label1.Opacity = 0; if ((IAnimatedView)_views[current] is View13) { return; } var currentView = _views[current - 1]; ((IAnimatedView)currentView).StartAnimation(); if (currentView is SoExcitedView) { SoExcitedView.instace.StartAnimation(); } if (currentView is BikingCoolView || currentView is Safa_Marwa) { Button.IsEnabled = true; Button.FadeTo(1, 900); label.FadeTo(1, 900); label1.FadeTo(1, 900); LottieAnimation.FadeTo(1, 900); } else { Button.Opacity = 0; LottieAnimation.Opacity = 0; label.Opacity = 0; label1.Opacity = 0; Button.IsEnabled = false; } img1.IsEnabled = false; Task.WaitAll(); return; }