From 22f3c5b3646f03c597f8dd1151fabedfb6007349 Mon Sep 17 00:00:00 2001 From: Rui Marinho Date: Sat, 18 Jun 2016 01:16:00 +0100 Subject: =?UTF-8?q?[Android]=C2=A0Make=20sure=20to=20add=20a=20parent=20to?= =?UTF-8?q?=20the=20new=20group=20header=20cell=20(#228)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Xamarin.Forms.Platform.Android/Renderers/ListViewAdapter.cs | 1 + 1 file changed, 1 insertion(+) (limited to 'Xamarin.Forms.Platform.Android/Renderers') diff --git a/Xamarin.Forms.Platform.Android/Renderers/ListViewAdapter.cs b/Xamarin.Forms.Platform.Android/Renderers/ListViewAdapter.cs index 64d9d180..5ac214cd 100644 --- a/Xamarin.Forms.Platform.Android/Renderers/ListViewAdapter.cs +++ b/Xamarin.Forms.Platform.Android/Renderers/ListViewAdapter.cs @@ -408,6 +408,7 @@ namespace Xamarin.Forms.Platform.Android var groupContent = _listView.TemplatedItems.GroupHeaderTemplate.CreateContent(group.ItemsSource, _listView) as Cell; if (groupContent != null) { + groupContent.Parent = _listView; groupContent.BindingContext = group.ItemsSource; cells.Add(groupContent); } -- cgit v1.2.3