Skip to content

Instantly share code, notes, and snippets.

@juucustodio
Last active June 14, 2017 01:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save juucustodio/371ae1729617510711e5e968fe8c2304 to your computer and use it in GitHub Desktop.
Save juucustodio/371ae1729617510711e5e968fe8c2304 to your computer and use it in GitHub Desktop.
IndicadoresPage.xaml from the project https://github.com/juucustodio/CarouselView-Xamarin.Forms
<?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:local="clr-namespace:DemoCarouselView"
xmlns:forms="clr-namespace:Xamarin.Forms;assembly=Xamarin.Forms.CarouselView"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="DemoCarouselView.IndicadoresPage">
<StackLayout>
<forms:CarouselView x:Name="ImageCarouselView" Position="{Binding Position, Mode=TwoWay}"
ItemsSource="{Binding ListaImagens}" >
<forms:CarouselView.ItemTemplate>
<DataTemplate>
<Image Source="{Binding .}"/>
</DataTemplate>
</forms:CarouselView.ItemTemplate>
</forms:CarouselView>
<local:IndicadoresCarousel x:Name="Indicadores" IndicatorHeight="16" IndicatorWidth="16"
UnselectedIndicator="naoSelecionado.png" SelectedIndicator="selecionado.png"
Position="{Binding Position}" ItemsSource="{Binding ListaImagens}" />
</StackLayout>
</ContentPage>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment