diff options
author | Jason Smith <jason.smith@xamarin.com> | 2016-03-22 13:02:25 -0700 |
---|---|---|
committer | Jason Smith <jason.smith@xamarin.com> | 2016-03-22 16:13:41 -0700 |
commit | 17fdde66d94155fc62a034fa6658995bef6fd6e5 (patch) | |
tree | b5e5073a2a7b15cdbe826faa5c763e270a505729 /Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Bugzilla27698.cs | |
download | xamarin-forms-17fdde66d94155fc62a034fa6658995bef6fd6e5.tar.gz xamarin-forms-17fdde66d94155fc62a034fa6658995bef6fd6e5.tar.bz2 xamarin-forms-17fdde66d94155fc62a034fa6658995bef6fd6e5.zip |
Initial import
Diffstat (limited to 'Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Bugzilla27698.cs')
-rw-r--r-- | Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Bugzilla27698.cs | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Bugzilla27698.cs b/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Bugzilla27698.cs new file mode 100644 index 00000000..08122826 --- /dev/null +++ b/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Bugzilla27698.cs @@ -0,0 +1,53 @@ +using System; + +using Xamarin.Forms.CustomAttributes; + +#if UITEST +using Xamarin.UITest; +using NUnit.Framework; +#endif + +namespace Xamarin.Forms.Controls +{ + [Issue (IssueTracker.Bugzilla, 27698, "[iOS] DisplayAlert and DisplayActionSheet are shown below master page ")] + public class Bugzilla27698 : TestMasterDetailPage // or TestMasterDetailPage, etc ... + { + protected override void Init () + { + + var showAlertBtn = new Button { Text = "DisplayAlert" }; + var showActionSheetBtn = new Button { Text = "DisplayActionSheet" }; + + var master = new ContentPage + { + Title = "Master", + Content = new StackLayout + { + VerticalOptions = LayoutOptions.Center, + Children = { + showAlertBtn, + showActionSheetBtn + } + } + }; + + Master = master; + + MasterBehavior = MasterBehavior.Popover; + + Detail = new ContentPage { + Content = new Label { Text = "Details", HorizontalOptions = + LayoutOptions.Center, VerticalOptions = LayoutOptions.Center + } + }; + + showAlertBtn.Clicked += (s, e) => DisplayAlert("Title","Message", "Cancel"); + showActionSheetBtn.Clicked += (s, e) => DisplayActionSheet ("Title", "Cancel", null, "Button1", "Button2", "Button3"); + + } + +#if UITEST + +#endif + } +} |