예제 #1
0
        private void Carousel_SelectionChanged(object sender, Syncfusion.SfCarousel.XForms.SelectionChangedEventArgs e)
        {
            int index = carousel.SelectedIndex;

            if (index == 0)
            {
                layer.GeoCoordinates = new Point(20.6843, -88.5678);
            }
            else if (index == 1)
            {
                layer.GeoCoordinates = new Point(-13.1631, -72.5450);
            }
            else if (index == 2)
            {
                layer.GeoCoordinates = new Point(-22.9519, -43.2106);
            }
            else if (index == 3)
            {
                layer.GeoCoordinates = new Point(41.8902, 12.4922);
            }
            else if (index == 4)
            {
                layer.GeoCoordinates = new Point(30.3285, 35.4444);
            }
            else if (index == 5)
            {
                layer.GeoCoordinates = new Point(27.1751, 78.0421);
            }
            else if (index == 6)
            {
                layer.GeoCoordinates = new Point(40.4319, 116.5704);
            }
        }
예제 #2
0
 private void BrandCarousel_SelectionChanged(object sender, Syncfusion.SfCarousel.XForms.SelectionChangedEventArgs e)
 {
     selection.Text = brandCarousel.SelectedIndex + " / " + (carouselViewModel.DataCollection.Count - 1);
 }