blob: 8a3d450f585211b1f5374fffc428c65c08e2067c (
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;
using System.Collections.ObjectModel;
using System.Diagnostics;
using System.Linq;
using System.Threading.Tasks;
namespace Xamarin.Forms.Controls
{
// NavigationPage -> ContentPage
public class RootNavigationContentPage : NavigationPage {
public RootNavigationContentPage (string hierarchy)
{
AutomationId = hierarchy + "PageId";
var content = new ContentPage {
BackgroundColor = Color.Yellow,
Title = "Testing 123",
Content = new SwapHierachyStackLayout (hierarchy)
};
PushAsync (content);
}
}
}
|