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); } } }