summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Platform.WinRT
diff options
context:
space:
mode:
Diffstat (limited to 'Xamarin.Forms.Platform.WinRT')
-rw-r--r--Xamarin.Forms.Platform.WinRT/CellControl.cs7
1 files changed, 3 insertions, 4 deletions
diff --git a/Xamarin.Forms.Platform.WinRT/CellControl.cs b/Xamarin.Forms.Platform.WinRT/CellControl.cs
index 31f29902..66be8262 100644
--- a/Xamarin.Forms.Platform.WinRT/CellControl.cs
+++ b/Xamarin.Forms.Platform.WinRT/CellControl.cs
@@ -228,14 +228,13 @@ namespace Xamarin.Forms.Platform.WinRT
}
else
{
- string textContent = newContext.ToString();
-
IListViewController listViewController = lv;
+ var defaultContext = newContext;
if (isGroupHeader)
- textContent = listViewController.GetDisplayTextFromGroup(newContext);
+ defaultContext = listViewController.GetDisplayTextFromGroup(newContext);
- cell = listViewController.CreateDefaultCell(textContent);
+ cell = listViewController.CreateDefaultCell(defaultContext);
}
// A TableView cell should already have its parent,