From 4c720530e60709cf9c87843757a231e8d367ba06 Mon Sep 17 00:00:00 2001 From: Pavel Yakovlev Date: Tue, 12 Feb 2019 16:13:58 +0300 Subject: [PATCH] [UWP] Fixes call Tapped event ListView (#3400) fixes #2318 fixes #4901 - fixes EntryCellTextBox template --- Xamarin.Forms.Platform.UAP/ListViewRenderer.cs | 6 +++--- Xamarin.Forms.Platform.UAP/Resources.xaml | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Xamarin.Forms.Platform.UAP/ListViewRenderer.cs b/Xamarin.Forms.Platform.UAP/ListViewRenderer.cs index c48497f72..4281041a1 100644 --- a/Xamarin.Forms.Platform.UAP/ListViewRenderer.cs +++ b/Xamarin.Forms.Platform.UAP/ListViewRenderer.cs @@ -722,9 +722,9 @@ namespace Xamarin.Forms.Platform.UWP List.SelectedIndex = index; } - void OnListItemClicked(int index) + void OnListItemClicked(int index, Cell cell = null) { - Element.NotifyRowTapped(index, cell: null); + Element.NotifyRowTapped(index, cell); _itemWasClicked = true; } @@ -735,7 +735,7 @@ namespace Xamarin.Forms.Platform.UWP var templatedItems = TemplatedItemsView.TemplatedItems; var selectedItemIndex = templatedItems.GetGlobalIndexOfItem(e.ClickedItem); - OnListItemClicked(selectedItemIndex); + OnListItemClicked(selectedItemIndex, e.ClickedItem as Cell); } } diff --git a/Xamarin.Forms.Platform.UAP/Resources.xaml b/Xamarin.Forms.Platform.UAP/Resources.xaml index ca90517eb..0bbbe69ad 100644 --- a/Xamarin.Forms.Platform.UAP/Resources.xaml +++ b/Xamarin.Forms.Platform.UAP/Resources.xaml @@ -318,7 +318,7 @@ - +