public LoginView() { InitializeComponent(); _authenticationBehaviour = ControllerBag.GetBehaviour <AuthenticationBehaviour>(); _messenger = Mvx.Resolve <IMvxMessenger>(); NavigationPage.SetHasNavigationBar(this, false); NavigationPage.SetHasBackButton(this, false); }
public AuthDialogPage(OAuth2PasswordCredentialsAuthenticator authenticator, AuthPageConfiguration authPageConfiguration = null) { if (authenticator == null) { throw new ArgumentNullException(nameof(authenticator), "You must provide an anthenticator"); } if (authPageConfiguration == null) { authPageConfiguration = new AuthPageConfiguration(); } _authPageConfiguration = authPageConfiguration; _authenticator = authenticator; _authenticator.Completed += AuthenticatorOnCompleted; _authenticator.Error += AuthenticatorOnError; InitializeComponent(); AuthFieldsToEntries(); ConfigurePage(); _authenticationBehaviour = ControllerBag.GetBehaviour <AuthenticationBehaviour>(); }