2016-03-22 23:02:25 +03:00
using System ;
using System.Collections.Generic ;
using System.Text ;
using Xamarin.Forms.CustomAttributes ;
2016-04-26 18:20:55 +03:00
using Xamarin.Forms.Internals ;
2016-03-22 23:02:25 +03:00
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 ) ;
}
}
}