summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Bugzilla44044.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Bugzilla44044.cs')
-rw-r--r--Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Bugzilla44044.cs52
1 files changed, 52 insertions, 0 deletions
diff --git a/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Bugzilla44044.cs b/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Bugzilla44044.cs
new file mode 100644
index 00000000..22f8b7bc
--- /dev/null
+++ b/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Bugzilla44044.cs
@@ -0,0 +1,52 @@
+using Xamarin.Forms.CustomAttributes;
+using Xamarin.Forms.Internals;
+using Xamarin.Forms.PlatformConfiguration.AndroidSpecific;
+using Xamarin.Forms.PlatformConfiguration;
+
+#if UITEST
+using Xamarin.UITest;
+using NUnit.Framework;
+#endif
+
+namespace Xamarin.Forms.Controls.Issues
+{
+ [Preserve(AllMembers = true)]
+ [Issue(IssueTracker.Bugzilla, 44044, "TabbedPage steals swipe gestures", PlatformAffected.Android)]
+ public class Bugzilla44044 : TestTabbedPage
+ {
+ protected override void Init()
+ {
+ Children.Add(new ContentPage()
+ {
+ Title = "Page 1",
+ Content = new StackLayout
+ {
+ Children =
+ {
+ new Button
+ {
+ Text = "Click to Toggle Swipe Paging",
+ Command = new Command(() => On<Android>().SetIsSwipePagingEnabled(!On<Android>().IsSwipePagingEnabled()))
+ }
+ }
+ }
+ });
+
+ Children.Add(new ContentPage()
+ {
+ Title = "Page 2",
+ Content = new StackLayout
+ {
+ Children =
+ {
+ new Button
+ {
+ Text = "Click to DisplayAlert",
+ Command = new Command(() => DisplayAlert("Page 2", "Message", "Cancel"))
+ }
+ }
+ }
+ });
+ }
+ }
+} \ No newline at end of file