summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Core
diff options
context:
space:
mode:
authorSamantha Houts <samantha@teamredwall.com>2016-09-27 06:43:17 -0700
committerRui Marinho <me@ruimarinho.net>2016-09-27 14:43:17 +0100
commitc83c830c68bc0da08f330457dc6901f1657b86f5 (patch)
tree9c376e66dfea3e9d64cbed2ee21d9b540f8f3fae /Xamarin.Forms.Core
parent6aa96a43915edaa8fa03ab9bf5abf00fd424f3f1 (diff)
downloadxamarin-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.Core')
-rw-r--r--Xamarin.Forms.Core/Cells/Cell.cs3
1 files changed, 2 insertions, 1 deletions
diff --git a/Xamarin.Forms.Core/Cells/Cell.cs b/Xamarin.Forms.Core/Cells/Cell.cs
index 863e0342..d434b564 100644
--- a/Xamarin.Forms.Core/Cells/Cell.cs
+++ b/Xamarin.Forms.Core/Cells/Cell.cs
@@ -9,6 +9,7 @@ namespace Xamarin.Forms
{
public abstract class Cell : Element, ICellController
{
+ public const int DefaultCellHeight = 40;
public static readonly BindableProperty IsEnabledProperty = BindableProperty.Create("IsEnabled", typeof(bool), typeof(Cell), true, propertyChanged: OnIsEnabledPropertyChanged);
ObservableCollection<MenuItem> _contextActions;
@@ -70,7 +71,7 @@ namespace Xamarin.Forms
if (list != null)
return list.HasUnevenRows && Height > 0 ? Height : list.RowHeight;
- return 40;
+ return DefaultCellHeight;
}
}