blob: e33d5aec88ef30940b6cf1315039dce377294bf1 (
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;
using System.Collections.ObjectModel;
using System.Diagnostics;
using System.Linq;
using System.Threading.Tasks;
namespace Xamarin.Forms.Controls
{
// TabbedPage -> NavigationPage
public class TabbedNavPage : MasterDetailPage
{
public TabbedNavPage ()
{
NavigationPage navpage = null;
navpage = new NavigationPage (new ContentPage {
Title = "Content0",
Content = new Button {
Text = "Button",
Command = new Command (() => {
Debug.WriteLine ("k");
navpage.PushAsync (new ContentPage () {Title = "Content1"});
})
}
}) {
Title = "Page0",
};
Children.add(navpage);
Children.add(new HomeButton ());
}
}
}
|