コード例 #1
0
		public App (Configuration configuration)
		{
            if (configuration == null)
            {
                throw new ArgumentNullException("configuration");    
            }
            _configuration = configuration;

            var navigationPage = new NavigationPage();
            navigationPage.PushAsync(new AuthenticationPage(navigationPage, _configuration));

            MainPage = navigationPage;
		}
コード例 #2
0
        public AuthenticationPage(NavigationPage navigationPage,
        Configuration configuration)
        {
            if (navigationPage == null)
            {
                throw new ArgumentNullException("navigationPage");
            }

            if (configuration == null)
            {
                throw new ArgumentNullException("configuration");
            }

            _navigationPage = navigationPage;
            _configuration = configuration;

            Title = "Sign In";
            BackgroundColor = new Color(46, 81, 163);
            Content = StackLayout;
        }