diff options
Diffstat (limited to 'Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Bugzilla32842.xaml.cs')
-rw-r--r-- | Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Bugzilla32842.xaml.cs | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Bugzilla32842.xaml.cs b/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Bugzilla32842.xaml.cs new file mode 100644 index 00000000..ec73ea6a --- /dev/null +++ b/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Bugzilla32842.xaml.cs @@ -0,0 +1,46 @@ +using System; +using System.Collections.Generic; +using Xamarin.Forms.CustomAttributes; + +namespace Xamarin.Forms.Controls.Issues +{ +#if APP + [Preserve(AllMembers = true)] + [Issue(IssueTracker.Bugzilla, 32842, + "[WinRT] ItemSelected Not Ignored When a ListView Item Contains a TapGestureRecognizer", PlatformAffected.WinRT)] + public partial class Bugzilla32842 : ContentPage + { + public Bugzilla32842 () + { + + List<string> items = new List<string> { "item1", "item2", "item3" }; + + InitializeComponent (); + + MainList.ItemsSource = items; + MainList.ItemSelected += MainListSelectionChanged; + } + + int _boxTaps; + int _listSelections; + + void MainListSelectionChanged(object sender, SelectedItemChangedEventArgs e) + { + if (e.SelectedItem == null) { + return; + } + + _listSelections += 1; + + ListResults.Text = $"Selections = {_listSelections}"; + } + + void BoxTapped(object sender, EventArgs args) + { + _boxTaps += 1; + + BoxResults.Text = $"Box Taps = {_boxTaps}"; + } + } +#endif +} |