Forum Xamarin.Forms

CarouselView not displaying data

Hey, I already posted this on Stackoverflow, but maybe you guys can help me too :)

I am trying to display a CarouselView inside a TabbedPage. I already added the (prerelease-)packages to the Project. Here is my xaml file:

        <control:CarouselView x:Name="CVMain"
                              HeightRequest="150" >
                        <Label HorizontalOptions="Center"
                               Text="Just a test :)"
                               VerticalOptions="Center" />

(control: xmlns:control="clr-namespace:Xamarin.Forms;assembly=Xamarin.Forms.CarouselView")

The label doesn't show up when I launch my app. The carousel still exists tho, I can confirm that by adding the BackgroundColor="Green"attribute to the CarouselView.

What am I missing?

Edit: As suggested, I placed the Label inside a Grid, but without any success (I also added an Image):

    <control:CarouselView x:Name="CVMain" HeightRequest="150">
                        <RowDefinition Height="*" />
                        <RowDefinition Height="Auto" />
                    <Image Grid.RowSpan="2"
                           Source="{Binding ImageBase64,
                                            Converter={StaticResource Base64ToImageConverter}}" />
                    <StackLayout Grid.Row="1">
                        <Label Text="Test123" />


Sign In or Register to comment.