diff options
Diffstat (limited to 'Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Issue1305.cs')
-rw-r--r-- | Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Issue1305.cs | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Issue1305.cs b/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Issue1305.cs new file mode 100644 index 00000000..b1c38b10 --- /dev/null +++ b/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Issue1305.cs @@ -0,0 +1,50 @@ +using System; + +using Xamarin.Forms.CustomAttributes; + +namespace Xamarin.Forms.Controls +{ + [Preserve (AllMembers=true)] + [Issue (IssueTracker.Github, 1305, "ToolbarItems on NavigationPage broken", PlatformAffected.Android, NavigationBehavior.PushModalAsync)] + public class Issue1305 : ContentPage + { + public Issue1305 () + { + var settings = new ToolbarItem + { + Icon = "bank.png", + Text = "Settings", + Command = new Command(ShowSettingsPage), + }; + + ToolbarItems.Add(settings); + + Content = new ContentView { Content = new Label { Text = "Testing..." } }; + + Title = "Test Page"; + + Icon = "Icon.png"; + + } + + async void ShowSettingsPage() + { + await Navigation.PushAsync(new Issue13052()); + } + } + + [Preserve (AllMembers=true)] + [Issue (IssueTracker.Github, 1305, "ToolbarItems on NavigationPage broken", PlatformAffected.Android)] + public class Issue13052 : ContentPage + { + public Issue13052 () + { + Content = new ContentView { Content = new Label { Text = "Settings..." } }; + + Title = "Settings"; + + Icon = "bank.png"; + } + } +} + |