public NavigationPage() { _platformConfigurationRegistry = new Lazy <PlatformConfigurationRegistry <NavigationPage> >(() => new PlatformConfigurationRegistry <NavigationPage>(this)); #if __ANDROID__ Navigation = new MauiNavigationImpl(this); #else Navigation = new NavigationImpl(this); #endif Init(); }
internal NavigationPage(bool setforMaui, Page root = null) { _setForMaui = setforMaui; _platformConfigurationRegistry = new Lazy <PlatformConfigurationRegistry <NavigationPage> >(() => new PlatformConfigurationRegistry <NavigationPage>(this)); if (setforMaui) { Navigation = new MauiNavigationImpl(this); } else { Navigation = new NavigationImpl(this); } Init(); if (root != null) { PushPage(root); } }