summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoradrianknight89 <adrianknight89@outlook.com>2017-01-03 05:34:27 -0600
committerRui Marinho <me@ruimarinho.net>2017-01-03 11:34:27 +0000
commit17cdd40d1d7159e5ea40d85dc596cb00e6db69a5 (patch)
tree614d4a5ff0a2ad3b465f2ad4ce386cca02525308
parent6fc18e058bc5bf7eb645fcd91ffdaf6974dfb375 (diff)
downloadxamarin-forms-17cdd40d1d7159e5ea40d85dc596cb00e6db69a5.tar.gz
xamarin-forms-17cdd40d1d7159e5ea40d85dc596cb00e6db69a5.tar.bz2
xamarin-forms-17cdd40d1d7159e5ea40d85dc596cb00e6db69a5.zip
Return group instead of internal class (#461)
-rw-r--r--Xamarin.Forms.Core/ListView.cs4
1 files 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<object>().ElementAt(groupIndex), cell.BindingContext));
}
internal void NotifyRowTapped(int index, Cell cell = null)