From c83c830c68bc0da08f330457dc6901f1657b86f5 Mon Sep 17 00:00:00 2001 From: Samantha Houts Date: Tue, 27 Sep 2016 06:43:17 -0700 Subject: [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 --- Xamarin.Forms.Platform.WinRT/CellControl.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'Xamarin.Forms.Platform.WinRT') 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 -- cgit v1.2.3