summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Bugzilla27378.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Bugzilla27378.cs')
-rw-r--r--Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Bugzilla27378.cs33
1 files changed, 33 insertions, 0 deletions
diff --git a/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Bugzilla27378.cs b/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Bugzilla27378.cs
new file mode 100644
index 00000000..7d47e488
--- /dev/null
+++ b/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Bugzilla27378.cs
@@ -0,0 +1,33 @@
+´╗┐using System;
+using System.Collections.Generic;
+using System.Text;
+using Xamarin.Forms.CustomAttributes;
+
+namespace Xamarin.Forms.Controls.Issues
+{
+ [Preserve (AllMembers = true)]
+ [Issue (IssueTracker.Bugzilla, 27378, "Navigation.InsertPageBefore causes AurgumentException only on Windows Phone", PlatformAffected.WinPhone, NavigationBehavior.PushModalAsync)]
+ public class Bugzilla27378
+ : NavigationPage
+ {
+ public Bugzilla27378()
+ {
+ ContentPage page = null;
+ page = new ContentPage {
+ Content = new Button {
+ Text = "Click",
+ Command = new Command (async () => {
+ Navigation.InsertPageBefore (new ContentPage {
+ Content = new Label {
+ Text = "Second page"
+ }
+ }, page);
+ await Navigation.PopAsync ();
+ })
+ }
+ };
+
+ PushAsync (page);
+ }
+ }
+} \ No newline at end of file