Пример #1
0
 public Window()
 {
     _visualChildren                     = new List <IVisualTreeElement>();
     AlertManager                        = new AlertManager(this);
     ModalNavigationManager              = new ModalNavigationManager(this);
     Navigation                          = new NavigationImpl(this);
     InternalChildren.CollectionChanged += OnCollectionChanged;
 }
Пример #2
0
 public Application()
 {
     SetCurrentApplication(this);
     NavigationProxy = new NavigationImpl(this);
     SystemResources = DependencyService.Get <ISystemResourcesProvider>().GetSystemResources();
     SystemResources.ValuesChanged += OnParentResourcesChanged;
     _platformConfigurationRegistry = new Lazy <PlatformConfigurationRegistry <Application> >(() => new PlatformConfigurationRegistry <Application>(this));
     // Initialize this value, when the app loads
     _lastAppTheme = RequestedTheme;
 }
Пример #3
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();
        }
Пример #4
0
 public Application()
 {
     SetCurrentApplication(this);
     NavigationProxy  = new NavigationImpl(this);
     _systemResources = new Lazy <IResourceDictionary>(() => {
         var systemResources            = DependencyService.Get <ISystemResourcesProvider>().GetSystemResources();
         systemResources.ValuesChanged += OnParentResourcesChanged;
         return(systemResources);
     });
     _platformConfigurationRegistry = new Lazy <PlatformConfigurationRegistry <Application> >(() => new PlatformConfigurationRegistry <Application>(this));
 }
Пример #5
0
		protected Application()
		{
			var f = false;
			if (f)
				Loader.Load();
			NavigationProxy = new NavigationImpl(this);
			Current = this;
			_propertiesTask = GetPropertiesAsync();

			SystemResources = DependencyService.Get<ISystemResourcesProvider>().GetSystemResources();
			SystemResources.ValuesChanged += OnParentResourcesChanged;
		}
Пример #6
0
        public Application()
        {
            // var f = false;
            // if (f)
            //  Loader.Load();
            NavigationProxy = new NavigationImpl(this);
            SetCurrentApplication(this);

            SystemResources = DependencyService.Get <ISystemResourcesProvider>()?.GetSystemResources();
            SystemResources.ValuesChanged += OnParentResourcesChanged;
            _platformConfigurationRegistry = new Lazy <PlatformConfigurationRegistry <Application> >(() => new PlatformConfigurationRegistry <Application>(this));
        }
Пример #7
0
        protected Application()
        {
            var f = false;

            if (f)
            {
                Loader.Load();
            }
            NavigationProxy = new NavigationImpl(this);
            Current         = this;

            SystemResources = DependencyService.Get <ISystemResourcesProvider>().GetSystemResources();
            SystemResources.ValuesChanged += OnParentResourcesChanged;
            _platformConfigurationRegistry = new Lazy <PlatformConfigurationRegistry <Application> >(() => new PlatformConfigurationRegistry <Application>(this));
        }
Пример #8
0
        protected Application()
        {
            var f = false;

            if (f)
            {
                Loader.Load();
            }
            NavigationProxy = new NavigationImpl(this);
            Current         = this;
            _propertiesTask = GetPropertiesAsync();

            SystemResources = DependencyService.Get <ISystemResourcesProvider>().GetSystemResources();
            SystemResources.ValuesChanged += OnParentResourcesChanged;
        }
Пример #9
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);
            }
        }
Пример #10
0
 public NavigationMonitoringTab()
 {
     Navigation = new NavigationImpl(this, Navigation);
 }
        public NavigationPage()
        {
            _platformConfigurationRegistry = new Lazy <PlatformConfigurationRegistry <NavigationPage> >(() => new PlatformConfigurationRegistry <NavigationPage>(this));

            Navigation = new NavigationImpl(this);
        }
Пример #12
0
 public NavigationPage()
 {
     Navigation = new NavigationImpl(this);
 }