AndreiMisiukevich / CardView

CardsView | CarouselView | CoverflowView | CubeView for Xamarin.Forms
MIT License
710 stars 114 forks source link

Having the indicators control external and not in CarouselView body #384

Closed LegendaryB closed 3 years ago

LegendaryB commented 3 years ago

Hey,

any way possible to move the indicators control outside of the carousel view body? Already tried with setting itemssource manually but then the current position is not shown.

LegendaryB commented 3 years ago

Can be closed. My workaround is to give the CarouselView a x:Name. After that I use the IndicatorsControl like this:

<indicator:IndicatorsControl
     Grid.Column="1"
     ItemsSource="{Binding Media}"
     SelectedIndex="{Binding Source={x:Reference mediaPresenter}, Path=SelectedIndex}" />
AndreiMisiukevich commented 3 years ago

Or

<indicator:IndicatorsControl
     BindingContext="{Binding Source={x:Reference mediaPresenter}}"
     Grid.Column="1"/>