summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Issue2282.xaml.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Issue2282.xaml.cs')
-rw-r--r--Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Issue2282.xaml.cs42
1 files changed, 42 insertions, 0 deletions
diff --git a/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Issue2282.xaml.cs b/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Issue2282.xaml.cs
new file mode 100644
index 00000000..63b134ff
--- /dev/null
+++ b/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Issue2282.xaml.cs
@@ -0,0 +1,42 @@
+´╗┐using System;
+using System.Collections.Generic;
+using System.Collections.ObjectModel;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+using Xamarin.Forms;
+using Xamarin.Forms.CustomAttributes;
+
+namespace Xamarin.Forms.Controls.TestCasesPages
+{
+#if APP
+ [Preserve (AllMembers = true)]
+ [Issue (IssueTracker.Github, 2282, "ListView ItemTapped issue on Windows phone", PlatformAffected.WinPhone)]
+ public partial class Issue2282 : ContentPage
+ {
+ public Issue2282 ()
+ {
+ Items = new ObservableCollection<string>();
+ InitializeComponent();
+
+ BindingContext = Items;
+ MyListView.ItemTapped += (sender, e) => {
+ LogLabel.Text = string.Format("{0} - Item {1} Tapped!", _counter++, (string)e.Item);
+ };
+ }
+
+ public ObservableCollection<string> Items { get; set; }
+
+ int _counter = 0;
+
+ protected override void OnAppearing()
+ {
+ Items.Add("First");
+ Items.Add("Second");
+ Items.Add("Third");
+ base.OnAppearing();
+ }
+ }
+#endif
+}