diff options
author | Samantha Houts <samantha@teamredwall.com> | 2016-09-27 06:43:17 -0700 |
---|---|---|
committer | Rui Marinho <me@ruimarinho.net> | 2016-09-27 14:43:17 +0100 |
commit | c83c830c68bc0da08f330457dc6901f1657b86f5 (patch) | |
tree | 9c376e66dfea3e9d64cbed2ee21d9b540f8f3fae /Xamarin.Forms.Platform.WinRT | |
parent | 6aa96a43915edaa8fa03ab9bf5abf00fd424f3f1 (diff) | |
download | xamarin-forms-c83c830c68bc0da08f330457dc6901f1657b86f5.tar.gz xamarin-forms-c83c830c68bc0da08f330457dc6901f1657b86f5.tar.bz2 xamarin-forms-c83c830c68bc0da08f330457dc6901f1657b86f5.zip |
[UWP/WinRT] ListView UI virtualization works without explicit height on Cell/Row (#367)
* Add repro for 41271
* [UWP/WinRT] ListView virtualization works without explicit height on Cell/Row
* Adjust repro to clear ItemsSource OnDisappearing.
* Update docs
Diffstat (limited to 'Xamarin.Forms.Platform.WinRT')
-rw-r--r-- | Xamarin.Forms.Platform.WinRT/CellControl.cs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Xamarin.Forms.Platform.WinRT/CellControl.cs b/Xamarin.Forms.Platform.WinRT/CellControl.cs index eb06e688..0ad7adfd 100644 --- a/Xamarin.Forms.Platform.WinRT/CellControl.cs +++ b/Xamarin.Forms.Platform.WinRT/CellControl.cs @@ -97,7 +97,9 @@ namespace Xamarin.Forms.Platform.WinRT } } - return new Windows.Foundation.Size(0, 0); + // This needs to return a size with a non-zero height; + // otherwise, it kills virtualization. + return new Windows.Foundation.Size(0, Cell.DefaultCellHeight); } // Children still need measure called on them |