diff options
Diffstat (limited to 'Xamarin.Forms.Controls/RootPages/RootNavigationContentPage.cs')
-rw-r--r-- | Xamarin.Forms.Controls/RootPages/RootNavigationContentPage.cs | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/Xamarin.Forms.Controls/RootPages/RootNavigationContentPage.cs b/Xamarin.Forms.Controls/RootPages/RootNavigationContentPage.cs new file mode 100644 index 00000000..8a3d450f --- /dev/null +++ b/Xamarin.Forms.Controls/RootPages/RootNavigationContentPage.cs @@ -0,0 +1,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); + } + } +}
\ No newline at end of file |