From 42e04bacc221103f094c917e8e7796e14444e113 Mon Sep 17 00:00:00 2001 From: Seungkeun Lee Date: Wed, 4 Jan 2017 22:57:54 -0800 Subject: [PATCH] Revert "Homogenous mode should be set to false if grouping is enabled" This reverts commit f11633b67dad5950ceb83935c17f1bfd2305dbeb. It is normal operation, when HasUnevenRows was false, GroupHeader and Cell has same height Change-Id: I9f25d5a863799b98622ae7ed43f4080e35f7dbea --- Xamarin.Forms.Platform.Tizen/Native/ListView.cs | 35 ++----------------------- 1 file changed, 2 insertions(+), 33 deletions(-) diff --git a/Xamarin.Forms.Platform.Tizen/Native/ListView.cs b/Xamarin.Forms.Platform.Tizen/Native/ListView.cs index f5047b3..fbee7d4 100644 --- a/Xamarin.Forms.Platform.Tizen/Native/ListView.cs +++ b/Xamarin.Forms.Platform.Tizen/Native/ListView.cs @@ -85,32 +85,10 @@ namespace Xamarin.Forms.Platform.Tizen.Native GenItemClass _headerFooterItemClass = null; /// - /// Indicates if the list view has uneven rows. - /// - bool _hasUnevenRows = false; - - /// - /// Indicates if grouping in the list view is enabled. - /// - bool _isGroupingEnabled = false; - - /// /// Gets or sets a value indicating whether this instance has grouping enabled. /// /// true if this instance has grouping enabled. - public bool IsGroupingEnabled - { - get - { - return _isGroupingEnabled; - } - - set - { - _isGroupingEnabled = value; - UpdateHomogeneousMode(); - } - } + public bool IsGroupingEnabled { get; set; } /// /// Constructor of ListView native control. @@ -146,8 +124,7 @@ namespace Xamarin.Forms.Platform.Tizen.Native /// If true, the list will allow uneven sizes for its rows. public void SetHasUnevenRows(bool hasUnevenRows) { - _hasUnevenRows = hasUnevenRows; - UpdateHomogeneousMode(); + Homogeneous = !hasUnevenRows; UpdateRealizedItems(); } @@ -622,13 +599,5 @@ namespace Xamarin.Forms.Platform.Tizen.Native } return _headerFooterItemClass; } - - /// - /// Updates the homogeneous mode of the list view. - /// - void UpdateHomogeneousMode() - { - Homogeneous = !_hasUnevenRows && !_isGroupingEnabled; - } } } -- 2.7.4