blob: 8503a709de48451319858902e9528753ae3ff314 (
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
|
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Xamarin.Forms.CustomAttributes;
using Xamarin.Forms.Internals;
namespace Xamarin.Forms.Controls
{
[Preserve (AllMembers = true)]
[Issue (IssueTracker.None, 0,"NavigationPage push pop", PlatformAffected.All, NavigationBehavior.PushModalAsync)]
public class NavPage : ContentPage
{
public NavPage ()
{
NavigationPage page = null;
var popButton1 = new Button () { Text = "Pop", BackgroundColor = Color.Blue };
popButton1.Clicked += (s, a) => Navigation.PopModalAsync ();
page = new NavigationPage (new ContentPage { Content = popButton1 });
Navigation.PushModalAsync (page);
}
}
}
|