зеркало из https://github.com/DeGsoft/maui-linux.git
34 строки
851 B
C#
34 строки
851 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Text;
|
|
using Xamarin.Forms.CustomAttributes;
|
|
using Xamarin.Forms.Internals;
|
|
|
|
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);
|
|
}
|
|
}
|
|
} |