From 17cdd40d1d7159e5ea40d85dc596cb00e6db69a5 Mon Sep 17 00:00:00 2001 From: adrianknight89 Date: Tue, 3 Jan 2017 05:34:27 -0600 Subject: Return group instead of internal class (#461) --- Xamarin.Forms.Core/ListView.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Xamarin.Forms.Core/ListView.cs b/Xamarin.Forms.Core/ListView.cs index dcc13e69..8b4fc53d 100644 --- a/Xamarin.Forms.Core/ListView.cs +++ b/Xamarin.Forms.Core/ListView.cs @@ -1,9 +1,9 @@ using System; using System.Collections; using System.Diagnostics; +using System.Linq; using System.Windows.Input; using Xamarin.Forms.Platform; -using Xamarin.Forms.Internals; namespace Xamarin.Forms { @@ -409,7 +409,7 @@ namespace Xamarin.Forms cell.OnTapped(); - ItemTapped?.Invoke(this, new ItemTappedEventArgs(group, cell.BindingContext)); + ItemTapped?.Invoke(this, new ItemTappedEventArgs(ItemsSource.Cast().ElementAt(groupIndex), cell.BindingContext)); } internal void NotifyRowTapped(int index, Cell cell = null) -- cgit v1.2.3