summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Platform.Tizen
diff options
context:
space:
mode:
authorSeungkeun Lee <sngn.lee@samsung.com>2017-01-05 06:57:54 (GMT)
committerSeungkeun Lee <sngn.lee@samsung.com>2017-01-06 05:24:41 (GMT)
commit8cdaca67ac9fb56dea295e3ed2bbaadf553b7612 (patch)
tree41b50ad569d50322ca3c39c2d9781393dbfdfb9b /Xamarin.Forms.Platform.Tizen
parentb729a649523c1acba03a4fccd30fac93d5f7b77e (diff)
downloadxamarin-forms-8cdaca67ac9fb56dea295e3ed2bbaadf553b7612.zip
xamarin-forms-8cdaca67ac9fb56dea295e3ed2bbaadf553b7612.tar.gz
xamarin-forms-8cdaca67ac9fb56dea295e3ed2bbaadf553b7612.tar.bz2
Revert "Homogenous mode should be set to false if grouping is enabled"refs/changes/88/108588/3
This reverts commit f11633b67dad5950ceb83935c17f1bfd2305dbeb. It is normal operation, when HasUnevenRows was false, GroupHeader and Cell has same height Change-Id: I9f25d5a863799b98622ae7ed43f4080e35f7dbea
Diffstat (limited to 'Xamarin.Forms.Platform.Tizen')
-rw-r--r--Xamarin.Forms.Platform.Tizen/Native/ListView.cs35
1 files 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;
/// <summary>
- /// Indicates if the list view has uneven rows.
- /// </summary>
- bool _hasUnevenRows = false;
-
- /// <summary>
- /// Indicates if grouping in the list view is enabled.
- /// </summary>
- bool _isGroupingEnabled = false;
-
- /// <summary>
/// Gets or sets a value indicating whether this instance has grouping enabled.
/// </summary>
/// <value><c>true</c> if this instance has grouping enabled.</value>
- public bool IsGroupingEnabled
- {
- get
- {
- return _isGroupingEnabled;
- }
-
- set
- {
- _isGroupingEnabled = value;
- UpdateHomogeneousMode();
- }
- }
+ public bool IsGroupingEnabled { get; set; }
/// <summary>
/// Constructor of ListView native control.
@@ -146,8 +124,7 @@ namespace Xamarin.Forms.Platform.Tizen.Native
/// <param name="hasUnevenRows">If <c>true</c>, the list will allow uneven sizes for its rows.</param>
public void SetHasUnevenRows(bool hasUnevenRows)
{
- _hasUnevenRows = hasUnevenRows;
- UpdateHomogeneousMode();
+ Homogeneous = !hasUnevenRows;
UpdateRealizedItems();
}
@@ -622,13 +599,5 @@ namespace Xamarin.Forms.Platform.Tizen.Native
}
return _headerFooterItemClass;
}
-
- /// <summary>
- /// Updates the homogeneous mode of the list view.
- /// </summary>
- void UpdateHomogeneousMode()
- {
- Homogeneous = !_hasUnevenRows && !_isGroupingEnabled;
- }
}
}