Crash when placing CarouselView in ViewCell

LeloLelo Member ✭✭✭
edited May 30 in Xamarin.Forms

I get a crash when:

<ListView ItemsSource="{StaticResource array}">
    <ListView.ItemTemplate>
        <DataTemplate>
                <ViewCell>
                        <CarouselView />
                    </ViewCell>
            </DataTemplate>
    </ListView.ItemTemplate>
</ListView>

I can replace the <CarouselView/> with anything but the <CarouselView/> and it will work. Also, when removing the ÌtemSource - the crash is avoided. I get System.InvalidCastException with the message specified cast is not valid.

Answers

Sign In or Register to comment.