Пример #1
0
        public NavigationPage()
        {
            _platformConfigurationRegistry = new Lazy <PlatformConfigurationRegistry <NavigationPage> >(() => new PlatformConfigurationRegistry <NavigationPage>(this));

#if __ANDROID__
            Navigation = new MauiNavigationImpl(this);
#else
            Navigation = new NavigationImpl(this);
#endif
            Init();
        }
Пример #2
0
        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);
            }
        }