CarouselView: Problem with ListView inside CarouselView
When I try to use a ListView in one of the views from Carousel view array, I get following error:
Value cannot be null. Parameter name: fieldType
`
<controls:CarouselViewControl VerticalOptions=“FillAndExpand” HorizontalOptions=“FillAndExpand”>
<controls:CarouselViewControl.ItemsSource>
<x:Array Type="{x:Type View}">
<RelativeLayout>
<Image Source="pi.png"/>
</RelativeLayout>
<RelativeLayout>
<ListView>
<ListView.ItemTemplate>
<DataTemplate>
<Label>
</Label>
</DataTemplate>
</ListView.ItemTemplate>
</ListView>
</RelativeLayout>
<RelativeLayout>
<Label Text="this is 3"/>
</RelativeLayout>
</x:Array>
</controls:CarouselViewControl.ItemsSource>
</controls:CarouselViewControl>
`
and it fails to compile if anything is under this DataTemplate, otherwise not.
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 17 (3 by maintainers)
Do you still work on this? This is a really annoying bug. Any chance that this could be solved?