Ejemplo n.º 1
0
        void CarouselView_PositionChanged(System.Object sender, Xamarin.Forms.PositionChangedEventArgs e)
        {
            var carousel = sender as CarouselView;
            var views    = carousel.VisibleViews;

            if (views.Count > 0)
            {
                foreach (var view in views)
                {
                    var img = view.FindByName <Image>("MenuImage");
                    ViewExtensions.CancelAnimations(img);

                    Task.Run(async() =>
                    {
                        await img.RelRotateTo(360, 5000, Easing.BounceOut);
                    });
                }
            }
        }
Ejemplo n.º 2
0
        void CarouselView_PositionChanged(System.Object sender, Xamarin.Forms.PositionChangedEventArgs e)
        {
            var item = carousel.CurrentItem as OnboardingItem;

            phoneImage.Source = item.ImageName;
        }