summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Platform.Tizen
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-10-23 04:34:36 (GMT)
commit8282a21b7e36ffd8e7956dcb8af163feebc80741 (patch)
tree52f822ba72231e27b695ba1235cfae3a5267ad8c /Xamarin.Forms.Platform.Tizen
parent2f87d3046354369c52f6db0b879a063b95dd02e5 (diff)
downloadxamarin-forms-8282a21b7e36ffd8e7956dcb8af163feebc80741.zip
xamarin-forms-8282a21b7e36ffd8e7956dcb8af163feebc80741.tar.gz
xamarin-forms-8282a21b7e36ffd8e7956dcb8af163feebc80741.tar.bz2
Update usage of GenList APIs
- Depend on : https://review.tizen.org/gerrit/#/c/130650/ Change-Id: Ia11e5e3947d9c207608144f0a8e474abb28d4374
Diffstat (limited to 'Xamarin.Forms.Platform.Tizen')
-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;