summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSeungkeun Lee <sngn.lee@samsung.com>2017-06-12 07:41:50 (GMT)
committerKangho Hur <kangho.hur@samsung.com>2017-07-10 02:11:26 (GMT)
commit16457517b77e002fe2eb5442ef71d88e1b48acab (patch)
treeed524f2d373f73441a2688dee3b7cddcf0835c9a
parent77a1ef68c8ddac86cfe74a7de040a1281605373b (diff)
downloadxamarin-forms-16457517b77e002fe2eb5442ef71d88e1b48acab.zip
xamarin-forms-16457517b77e002fe2eb5442ef71d88e1b48acab.tar.gz
xamarin-forms-16457517b77e002fe2eb5442ef71d88e1b48acab.tar.bz2
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 8501df1..91c2b83 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;