Allow CollectionView items to resize with their content (#5905)
authorE.Z. Hart <hartez@users.noreply.github.com>
Wed, 24 Apr 2019 18:30:02 +0000 (12:30 -0600)
committerSamantha Houts <samhouts@users.noreply.github.com>
Wed, 24 Apr 2019 18:30:02 +0000 (11:30 -0700)
commit583be22d5ce7dc9a6b980adb8fec8b9077a7a314
treed3331a28d4209280c3ce43da5a59aaed951979a1
parent87a93774abf364fcd4faa007b8c55fcc01f1ac5f
Allow CollectionView items to resize with their content (#5905)

* Add gallery for reproing expanding DataTemplate content;
Allow ItemContentView on Android to expand with content;
Allow ItemContentView on iOS to expand with content;
Fixes #5647

* Improve instructions
Fixes #5721
Fixes #5521

* Apply suggestions from code review

Co-Authored-By: hartez <hartez@users.noreply.github.com>
* Clear binding contexts before recycling cells/viewholders.
16 files changed:
Xamarin.Forms.Controls/GalleryPages/CollectionViewGalleries/CollectionViewGallery.cs
Xamarin.Forms.Controls/GalleryPages/CollectionViewGalleries/CollectionViewGalleryTestItem.cs
Xamarin.Forms.Controls/GalleryPages/CollectionViewGalleries/DataTemplateGallery.cs
Xamarin.Forms.Controls/GalleryPages/CollectionViewGalleries/ExampleTemplates.cs
Xamarin.Forms.Controls/GalleryPages/CollectionViewGalleries/ItemSizeGalleries/DynamicItemSizeGallery.cs [new file with mode: 0644]
Xamarin.Forms.Controls/GalleryPages/CollectionViewGalleries/ItemSizeGalleries/ItemsSizeGallery.cs [new file with mode: 0644]
Xamarin.Forms.Controls/GalleryPages/CollectionViewGalleries/ItemSizeGalleries/VariableSizeTemplateGridGallery.cs [moved from Xamarin.Forms.Controls/GalleryPages/CollectionViewGalleries/VariableSizeTemplateGridGallery.cs with 98% similarity]
Xamarin.Forms.Platform.Android/CollectionView/ItemContentView.cs
Xamarin.Forms.Platform.Android/CollectionView/TemplatedItemViewHolder.cs
Xamarin.Forms.Platform.iOS/CollectionView/HorizontalTemplatedCell.cs
Xamarin.Forms.Platform.iOS/CollectionView/ItemsViewCell.cs
Xamarin.Forms.Platform.iOS/CollectionView/ItemsViewController.cs
Xamarin.Forms.Platform.iOS/CollectionView/ItemsViewLayout.cs
Xamarin.Forms.Platform.iOS/CollectionView/TemplatedCell.cs
Xamarin.Forms.Platform.iOS/CollectionView/UICollectionViewDelegator.cs
Xamarin.Forms.Platform.iOS/CollectionView/VerticalTemplatedCell.cs