summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSeungkeun Lee <sngn.lee@samsung.com>2017-06-12 16:41:50 +0900
committerSeungkeun Lee <sngn.lee@samsung.com>2017-06-14 05:35:03 +0000
commit3f00fe212e74f554896f238e3f40c2b99ab25c3a (patch)
tree7dd4e180d94a35e7cbb220bd4d27a42c93862a68
parentbf8869bcdb5cffe8ae43aa1b5f89e16322792861 (diff)
downloadxamarin-forms-3f00fe212e74f554896f238e3f40c2b99ab25c3a.tar.gz
xamarin-forms-3f00fe212e74f554896f238e3f40c2b99ab25c3a.tar.bz2
xamarin-forms-3f00fe212e74f554896f238e3f40c2b99ab25c3a.zip
Update usage of GenList APIs
- Depend on : https://review.tizen.org/gerrit/#/c/130650/ Change-Id: Ia11e5e3947d9c207608144f0a8e474abb28d4374
-rw-r--r--Xamarin.Forms.Platform.Tizen/Native/ListView.cs8
1 files changed, 4 insertions, 4 deletions
diff --git a/Xamarin.Forms.Platform.Tizen/Native/ListView.cs b/Xamarin.Forms.Platform.Tizen/Native/ListView.cs
index 8501df10..91c2b83f 100644
--- a/Xamarin.Forms.Platform.Tizen/Native/ListView.cs
+++ b/Xamarin.Forms.Platform.Tizen/Native/ListView.cs
@@ -266,7 +266,7 @@ namespace Xamarin.Forms.Platform.Tizen.Native
{
_headerContext = new ItemContext();
_headerContext.Item = _itemContextList.Count > 0 ? InsertBefore(headerTemplate, header, FirstItem) : Append(headerTemplate, header);
- (_headerContext.Item as GenListItem).SelectionMode = GenListSelectionMode.None;
+ _headerContext.Item.SelectionMode = GenItemSelectionMode.None;
_headerContext.Item.Deleted += HeaderDeletedHandler;
_itemContextList.Insert(0, _headerContext);
}
@@ -298,7 +298,7 @@ namespace Xamarin.Forms.Platform.Tizen.Native
{
_footerContext = new ItemContext();
_footerContext.Item = Append(footerTemplate, footer);
- (_footerContext.Item as GenListItem).SelectionMode = GenListSelectionMode.None;
+ _footerContext.Item.SelectionMode = GenItemSelectionMode.None;
_footerContext.Item.Deleted += FooterDeletedHandler;
_itemContextList.Add(_footerContext);
}
@@ -482,7 +482,7 @@ namespace Xamarin.Forms.Platform.Tizen.Native
groupItemContext.Item = Append(groupRenderer.Class, groupItemContext, GenListItemType.Group);
}
- (groupItemContext.Item as GenListItem).SelectionMode = GenListSelectionMode.None;
+ groupItemContext.Item.SelectionMode = GenItemSelectionMode.None;
groupItemContext.Item.IsEnabled = groupCell.IsEnabled;
groupItemContext.Item.Deleted += ItemDeletedHandler;
@@ -523,7 +523,7 @@ namespace Xamarin.Forms.Platform.Tizen.Native
itemContext.Item = Append(renderer.Class, itemContext, GenListItemType.Normal, parentItem);
}
- (itemContext.Item as GenListItem).SelectionMode = GenListSelectionMode.Always;
+ itemContext.Item.SelectionMode = GenItemSelectionMode.Always;
itemContext.Item.IsEnabled = cell.IsEnabled;
itemContext.Item.Deleted += ItemDeletedHandler;