コード例 #1
0
ファイル: App.xaml.cs プロジェクト: weiqiangzheng/ReactiveUI
        public App()
        {
            InitializeComponent();

            var bootstrapper = new AppBootstrapper();

            MainPage = bootstrapper.CreateMainPage();
        }
コード例 #2
0
ファイル: App.xaml.cs プロジェクト: satdast/ReactiveUI
        /// <summary>
        /// Initializes a new instance of the <see cref="App"/> class.
        /// </summary>
        public App()
        {
            InitializeComponent();

            ImageService.Instance.Initialize(new Configuration
            {
                HttpClient = new HttpClient(new RateLimitedHttpMessageHandler(new HttpClientHandler(), Priority.Background))
            });

            new AppBootstrapper();
            MainPage = AppBootstrapper.CreateMainPage();

            // I hate to do this, but honestly dont know a better way to styke the navbar
            ((NavigationPage)Current.MainPage).Style = Current.Resources["DefaultNavigationPageStyle"] as Style;
        }