public PinAuthPage() { InitializeComponent(); var viewModel = new PinAuthViewModel(); base.BindingContext = viewModel; }
public PinAuthPage() { InitializeComponent(); NavigationPage.SetHasNavigationBar(this, false); var viewModel = new PinAuthViewModel(); base.BindingContext = viewModel; }
public PinAuthView() { InitializeComponent(); NavigationPage.SetHasBackButton(this, false); //Navigation.PushAsync(previousPage); //selectionpage = previousPage; BindingContext = new PinAuthViewModel(this.Navigation); }
public PinAuthPage() { InitializeComponent(); NavigationPage.SetHasNavigationBar(this, false); var viewModel = new PinAuthViewModel(); viewModel.PinViewModel.Success += (object sender, EventArgs e) => { this.Navigation.PopAsync(); }; base.BindingContext = viewModel; }
public LoginPinPage() { InitializeComponent(); NavigationPage.SetHasNavigationBar(this, false); var viewModel = new PinAuthViewModel(); viewModel.PinViewModel.Success += (object sender, EventArgs e) => { Application.Current.MainPage = new MainMenu(); }; base.BindingContext = viewModel; }
public PinAuthPage(EventHandler <PinEventArgs> successHandler, Func <string, bool> validatorFunc, string errorMessage, CommonPageSettings pageSettings, bool isReset = false) { this.Title = pageSettings.Title; NavigationPage.SetHasNavigationBar(this, pageSettings.HasNavigation); NavigationPage.SetHasBackButton(this, pageSettings.HasBack); InitializeComponent(); viewModel = new PinAuthViewModel(this, pageSettings, isReset); viewModel.PinViewModel.Success += successHandler; viewModel.PinViewModel.ValidatorFunc += validatorFunc; viewModel.Error = errorMessage; viewModel.Header = pageSettings.HeaderText; base.BindingContext = viewModel; }