コード例 #1
0
        public PinAuthPage()
        {
            InitializeComponent();
            var viewModel = new PinAuthViewModel();

            base.BindingContext = viewModel;
        }
コード例 #2
0
        public PinAuthPage()
        {
            InitializeComponent();
            NavigationPage.SetHasNavigationBar(this, false);
            var viewModel = new PinAuthViewModel();

            base.BindingContext = viewModel;
        }
コード例 #3
0
 public PinAuthView()
 {
     InitializeComponent();
     NavigationPage.SetHasBackButton(this, false);
     //Navigation.PushAsync(previousPage);
     //selectionpage = previousPage;
     BindingContext = new PinAuthViewModel(this.Navigation);
 }
コード例 #4
0
        public PinAuthPage()
        {
            InitializeComponent();
            NavigationPage.SetHasNavigationBar(this, false);
            var viewModel = new PinAuthViewModel();

            viewModel.PinViewModel.Success += (object sender, EventArgs e) =>
            {
                this.Navigation.PopAsync();
            };
            base.BindingContext = viewModel;
        }
コード例 #5
0
        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;
        }
コード例 #6
0
ファイル: PinAuthPage.xaml.cs プロジェクト: NetLS2013/guap
        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;
        }