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

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

2016-03-22 23:02:25 +03:00
using System.Collections.Generic;
using Xamarin.Forms.CustomAttributes;
namespace Xamarin.Forms.Controls
{
[Preserve (AllMembers=true)]
[Issue (IssueTracker.Bugzilla, 32034, "MissingMethodException while pushing and popping pages",PlatformAffected.Android, NavigationBehavior.PushModalAsync)]
public class Bugzilla32034 : NavigationPage
{
public class ButtonPage : ContentPage
{
public ButtonPage ()
{
Content = new StackLayout {
Children = {
new Button {
Text = "Push", Command = new Command (o => ((NavigationPage) Parent).PushAsync (new ButtonPage ()))
},
new Button {
Text = "Pop", Command = new Command (o => ((NavigationPage) Parent).Navigation.PopAsync ())
},
},
};
}
}
public Bugzilla32034 () : base (new ButtonPage ())
{
}
}
}