Skip to content

Instantly share code, notes, and snippets.

View fabienmw's full-sized avatar
💭
Learning new tech everyday

Fabien fabienmw

💭
Learning new tech everyday
View GitHub Profile
@fabienmw
fabienmw / CarouselIndicators.cs
Created July 14, 2017 08:54 — forked from 15mgm15/CarouselIndicators.cs
Xamarin.Forms Carousel View Indicators
public class CarouselIndicators : Grid
{
private ImageSource UnselectedImageSource = null;
private ImageSource SelectedImageSource = null;
private readonly StackLayout _indicators = new StackLayout() { Orientation = StackOrientation.Horizontal, HorizontalOptions = LayoutOptions.CenterAndExpand };
public CarouselIndicators()
{
this.HorizontalOptions = LayoutOptions.CenterAndExpand;
this.RowDefinitions.Add(new RowDefinition() { Height = GridLength.Auto });