You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 1, 2024. It is now read-only.
When setting the ItemsSource of a CollectionView with an heterogeneous list (int, datetime and string for example), CollectionView Fails on iOS to MeasureAllItems and resize the cell accordingly.
Steps to Reproduce
Create a collectionView with the SizingStrategy MeasureAllItems and set the ItemsSource to a list like below: <x:Array Type="{x:Type x:Object}"> <sys:DateTime>2001-12-01</sys:DateTime> <sys:DateTime>2006-06-21</sys:DateTime> <sys:Int32>98</sys:Int32> <sys:String>Baboon Baboon Baboon Baboon Baboon Baboon Baboon Baboon Baboon Baboon Baboon Baboon Baboon Baboon Baboon Baboon</sys:String> <sys:String>Goodbye</sys:String> <sys:Int32>98</sys:Int32> <sys:String>Baboon </sys:String> <sys:Int32>98</sys:Int32> </x:Array>
Set the datatemplate <DataTemplate> <Label Text="{Binding .}" /> </DataTemplate>
Run it on iOS and Android.
Expected Behavior
The item to be of the correct size
Actual Behavior
On Android, the it behaves correct.
On iOS, the list will keep the height of the greater item, after it is rendered
Description
When setting the ItemsSource of a CollectionView with an heterogeneous list (int, datetime and string for example), CollectionView Fails on iOS to MeasureAllItems and resize the cell accordingly.
Steps to Reproduce
Create a collectionView with the SizingStrategy MeasureAllItems and set the ItemsSource to a list like below:
<x:Array Type="{x:Type x:Object}"> <sys:DateTime>2001-12-01</sys:DateTime> <sys:DateTime>2006-06-21</sys:DateTime> <sys:Int32>98</sys:Int32> <sys:String>Baboon Baboon Baboon Baboon Baboon Baboon Baboon Baboon Baboon Baboon Baboon Baboon Baboon Baboon Baboon Baboon</sys:String> <sys:String>Goodbye</sys:String> <sys:Int32>98</sys:Int32> <sys:String>Baboon </sys:String> <sys:Int32>98</sys:Int32> </x:Array>
Set the datatemplate
<DataTemplate> <Label Text="{Binding .}" /> </DataTemplate>
Run it on iOS and Android.
Expected Behavior
The item to be of the correct size
Actual Behavior
On Android, the it behaves correct.
On iOS, the list will keep the height of the greater item, after it is rendered
Basic Information
Screenshots
Reproduction Link
CollectionViewMeasureAll.zip
Workaround
Don't use heterogeneous item source for now
The text was updated successfully, but these errors were encountered: