コード例 #1
0
        View CreatePagerIndicators()
        {
            var pagerIndicator = new PagerIndicatorDots()
            {
                DotSize = 5, DotColor = Color.Black
            };

            pagerIndicator.SetBinding(PagerIndicatorDots.ItemsSourceProperty, "Pages");
            pagerIndicator.SetBinding(PagerIndicatorDots.SelectedItemProperty, "CurrentPage");
            return(pagerIndicator);
        }
コード例 #2
0
        PagerIndicatorDots CreatePagerIndicators()
        {
            PagerIndicatorDots pagerIndicator = new PagerIndicatorDots()
            {
                DotSize         = 7,
                SelectColor     = ApplicationStyle.GreenColor,
                UnSelectColor   = ApplicationStyle.LineColor,
                VerticalOptions = LayoutOptions.CenterAndExpand,
            };

            pagerIndicator.SetBinding(PagerIndicatorDots.ItemsSourceProperty, "Pages");
            pagerIndicator.SetBinding(PagerIndicatorDots.SelectedItemProperty, "CurrentPage");
            return(pagerIndicator);
        }
コード例 #3
0
		View CreatePagerIndicators()
		{
			var pagerIndicator = new PagerIndicatorDots() { DotSize = 5, DotColor = Color.Black };
			pagerIndicator.SetBinding (PagerIndicatorDots.ItemsSourceProperty, "Pages");
			pagerIndicator.SetBinding (PagerIndicatorDots.SelectedItemProperty, "CurrentPage");
			return pagerIndicator;
		}