maui-linux/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issu.../Bugzilla27378.cs

34 строки
851 B
C#
Исходник Обычный вид История

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