AndreiMisiukevich / CardView

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

Add ThumbnailControl #144

Closed thiago-rcarvalho closed 5 years ago

thiago-rcarvalho commented 5 years ago

Hi guys!

First of all: thanks for this awesome plugin! 😀

I would like to know if you have some ideas (and if is possible) to change the indicator of the CarouselView, to achieve the same thumbnail style as Syncfusion Rotator control:

Syncfusion thumbs

Thanks in advance

AndreiMisiukevich commented 5 years ago

Hi @stealthcold Very good question. Yes, you can achieve it yourself But perhaps it can be great enhancement

So, i think, we can create ThumbnailControl Is it urgent for you? You can try to do it yourself (Add horizontal listView or scrollView with the same ItemsSource etc.)

thiago-rcarvalho commented 5 years ago

Hi @AndreiMisiukevich ,

Would be a nice feature! Right now I'm trying to combine inside a StackLayout the CarouselView with a CoverFlowView right below.

My app needs such thing, but I can release without it by now.

Thanks,

thiago-rcarvalho commented 5 years ago

Hey @AndreiMisiukevich,

I had no success with my Stack + Carousel + CoverFlowView idea. ☚ī¸ The CoverFlowView doesn't have an "ItemTapped" event for me to link with the selectedIndex change of de Carousel. And don't know why, the CoverFlowView got some weird behavior when showing the images from the ItemSource (not scolling correctly and flickering).

Do you plan implement the thumbnails? I'll wait for it. As I said before, I can release my app without it now.

Thanks,

AndreiMisiukevich commented 5 years ago

@stealthcold yes, i will)

AndreiMisiukevich commented 5 years ago

@stealthcold hi, sorry for delay Just tried to implement it with ListView -- no luck

I think, you can achieve it with HorizontalScrollView. Just put several items(images) with tapGesture to ScrollView.

I guess it's OK for you, if you don't have 10+ items in carousel. As for virtualization...hm, i think CollectionView can help. https://github.com/xamarin/Xamarin.Forms/issues/3172

The best approach is adding CollectionView (horizontal listView) with the same ItemsSource and ItemTemplate (In next release it would be possible to use ViewCell for CardsView and CarouselView)

Bind CollectionView.SelectedItem to CardsView.SelectedItem Bind CollectionView.ItemsSource to CardsView.ItemsSource Bind CollectionView.ItemTemplate to CardsView.ItemTemplate

Something like this should work..

@Phenek sorry for disturbing :) Are you still interested in supporting this repo (RE: CoverFlowView)

thiago-rcarvalho commented 5 years ago

@AndreiMisiukevich

Thanks for the suggestions! I'll take a look!

Thanks,