blob: 7d47e488db7924c884700943977cdbaa1d9eb23c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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);
}
}
}
|