blob: 84cfa956df69b027273bd8f8521760a56a813403 (
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
|
using System;
using System.Collections;
using System.Collections.ObjectModel;
using System.Diagnostics;
using System.Linq;
using System.Threading.Tasks;
namespace Xamarin.Forms.Controls
{
//Issue 465
public class Issue465Page : TabbedPage
{
public Issue465Page ()
{
var popModalButton = new Button {
Text = "PopModalAsync",
HorizontalOptions = LayoutOptions.CenterAndExpand,
VerticalOptions = LayoutOptions.CenterAndExpand
};
var splashPage = new ContentPage { Content = popModalButton };
Navigation.PushModalAsync (splashPage);
popModalButton.Clicked += (s, e) => Navigation.PopModalAsync ();
}
}
}
|