From 238c00b20772fbfe36ce1f290ac2d25c6275bf8a Mon Sep 17 00:00:00 2001 From: Jason Smith Date: Mon, 18 Jul 2016 07:54:04 -0700 Subject: Ensure BindingContext is properly passed to CreateDefault in UWP ListView (#259) --- Xamarin.Forms.Platform.WinRT/CellControl.cs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'Xamarin.Forms.Platform.WinRT') 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, -- cgit v1.2.3