Single ContentPage as CarouselView item

Hi all!
I use Xamarin.Forms.CarouselView control.
Is there a way to have a single ContentPage as CarouselView item?
I have this code:

            <control:CarouselView x:Name="CarouselView" ItemsSource="{Binding MyDataSource}" Position="{Binding Position, Mode=TwoWay}" >
                <control:CarouselView.ItemTemplate>
                    <DataTemplate>
                        <Label Text="{Binding Name}" TextColor="White" />
                    </DataTemplate>
                </control:CarouselView.ItemTemplate>
            </control:CarouselView>

MyDataSource is a List. It works, but i don't know how to use a ContentPage (fro example, Page1) as item.

Answers

  • AlessandroCaliaroAlessandroCaliaro ITMember ✭✭✭✭✭

    If I have understand the problem, I think you should use CarouselPage (if it's has not been removed from XF)

  • mreminmremin Member ✭✭

    @AlessandroCaliaro said:
    If I have understand the problem, I think you should use CarouselPage (if it's has not been removed from XF)

    CarouselPage is not for my case. I need to get tabbed page (with another pages as items) and be able to put some controls around this tabbed page (for example, use StackLayout instead of ToolBar). Using TabbedPage of CarouselPage, i can't do that.

  • AndreiMisiukevich_AndreiMisiukevich_ USMember ✭✭✭✭✭

    @AlessandroCaliaro @mremin
    Hi colleagues
    There is alternative - https://github.com/AndreiMisiukevich/CardView

    Hope, it works more stable =)

Sign In or Register to comment.