summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Platform.WinRT
diff options
context:
space:
mode:
authorJason Smith <jason.smith@xamarin.com>2016-07-18 07:54:04 -0700
committerRui Marinho <me@ruimarinho.net>2016-07-18 15:54:04 +0100
commit238c00b20772fbfe36ce1f290ac2d25c6275bf8a (patch)
treeaed3d700cada4dc0da9da587a1bf3fd60500e7b9 /Xamarin.Forms.Platform.WinRT
parentdead1e0959d0c36f2c14a1329b60f01c73b809bb (diff)
downloadxamarin-forms-238c00b20772fbfe36ce1f290ac2d25c6275bf8a.tar.gz
xamarin-forms-238c00b20772fbfe36ce1f290ac2d25c6275bf8a.tar.bz2
xamarin-forms-238c00b20772fbfe36ce1f290ac2d25c6275bf8a.zip
Ensure BindingContext is properly passed to CreateDefault in UWP ListView (#259)
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,