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/Bugzilla37601.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/Bugzilla37601.cs')
-rw-r--r-- | Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Bugzilla37601.cs | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Bugzilla37601.cs b/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Bugzilla37601.cs new file mode 100644 index 00000000..4d40bd26 --- /dev/null +++ b/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Bugzilla37601.cs @@ -0,0 +1,50 @@ +using Xamarin.Forms.CustomAttributes; + +namespace Xamarin.Forms.Controls +{ + [Preserve (AllMembers = true)] + [Issue (IssueTracker.Bugzilla, 37601, "ToolbarItem throws error when navigating to TabbedPage ", + PlatformAffected.WinPhone)] + public class Bugzilla37601 : TestNavigationPage + { + protected override void Init () + { + Navigation.PushAsync (new SelectPage ()); + } + } + + internal class SelectPage : ContentPage + { + public SelectPage () + { + var button = new Button { Text = "Move" }; + + var label = new Label { + Text = + "Click the Move button. If the next page is displayed, the test has passed. If the app crashes, the test has failed." + }; + + Content = new StackLayout { + Children = { label, button } + }; + + button.Clicked += (sender, args) => { Navigation.PushAsync (new TabbedMain (), true); }; + + ToolbarItems.Add (new ToolbarItem { Text = "Log Out" }); + } + } + + internal class TabbedMain : TabbedPage + { + public TabbedMain () + { + var page1 = new ContentPage { Title = "Page1" }; + page1.Content = new StackLayout { + Children = { new Label { Text = "If you can see this, we haven't crashed. Yay!" } } + }; + + Children.Add (page1); + Children.Add (new ContentPage { Title = "Page2" }); + } + } +}
\ No newline at end of file |