diff options
author | Paul DiPietro <pauldipietro@users.noreply.github.com> | 2016-10-20 15:01:50 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-10-20 15:01:50 -0500 |
commit | 4042f39f0007dd80f6ca3f8273e4cc155cf8123c (patch) | |
tree | 4d9a282508d809645d1c00b05f3d2376c61c1330 /Xamarin.Forms.Controls.Issues | |
parent | d24f3e5438c300242d553e81817b57045f00bf4f (diff) | |
download | xamarin-forms-4042f39f0007dd80f6ca3f8273e4cc155cf8123c.tar.gz xamarin-forms-4042f39f0007dd80f6ca3f8273e4cc155cf8123c.tar.bz2 xamarin-forms-4042f39f0007dd80f6ca3f8273e4cc155cf8123c.zip |
[Android] Add Platform Specific features for setting TabbedPage swipe paging and OffscreenPageLimit (#409)
* [Android] Add Platform Specific feature for setting TabbedPage swipe paging
* [Android] Add Platform Specific feature for OffscreenPageLimit
* Update docs
Diffstat (limited to 'Xamarin.Forms.Controls.Issues')
2 files changed, 53 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 diff --git a/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Xamarin.Forms.Controls.Issues.Shared.projitems b/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Xamarin.Forms.Controls.Issues.Shared.projitems index debaecca..edbe9d07 100644 --- a/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Xamarin.Forms.Controls.Issues.Shared.projitems +++ b/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Xamarin.Forms.Controls.Issues.Shared.projitems @@ -129,6 +129,7 @@ <Compile Include="$(MSBuildThisFileDirectory)Bugzilla44166.cs" /> <Compile Include="$(MSBuildThisFileDirectory)Bugzilla44461.cs" /> <Compile Include="$(MSBuildThisFileDirectory)Bugzilla42832.cs" /> + <Compile Include="$(MSBuildThisFileDirectory)Bugzilla44044.cs" /> <Compile Include="$(MSBuildThisFileDirectory)CarouselAsync.cs" /> <Compile Include="$(MSBuildThisFileDirectory)Bugzilla34561.cs" /> <Compile Include="$(MSBuildThisFileDirectory)Bugzilla34727.cs" /> |