AndreiMisiukevich / CardView

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

IndicatorsControl item size #426

Closed garnelsoftware closed 1 year ago

garnelsoftware commented 1 year ago

Hi Andrei,

As I always say, great plugin it's made all the difference to my app but I'd like to know how to shrink the size of the items in the indicators control.

Sometimes I'll have as few as 8 items and as much as 26 so to stand a chance of it fitting I'd either need smaller circles displayed or some sort of progress bar style.

Do you have any advice for me?

Thanks!

AndreiMisiukevich commented 1 year ago

Hi @garnelsoftware

IndicatorsControl has a property ItemTemplate. IndicatorItemView has a few props also.

<controls:IndicatorsControl>
  <controls:IndicatorsControl.ItemTemplate>
    <DataTemplate>
      <controls:IndicatorItemView Size="2" />
    </DataTemplate>
  </controls:IndicatorsControl.ItemTemplate>
</controls:IndicatorsControl>

Also, you can consider putting IndicatorsControl into ScrollView or maybe even building your own IndicatorsControl

garnelsoftware commented 1 year ago

Excellent as always, thank you so much!

On Thu, 26 Oct 2023 at 15:15, Andrei @.***> wrote:

Hi @garnelsoftware https://github.com/garnelsoftware

IndicatorsControl has a property ItemTemplate. IndicatorItemView has a few props also.

Also, you can consider putting IndicatorsControl into ScrollView or maybe even building your own IndicatorsControl — Reply to this email directly, view it on GitHub , or unsubscribe . You are receiving this because you were mentioned.Message ID: ***@***.***>