Exemplo n.º 1
0
        private async void Return()
        {
            var viewModel = new TermViewModel();
            var terms     = App.Database.GetTermsAsync();
            var page      = new TermPage(_term[0])
            {
                BindingContext = viewModel
            };

            await this.Navigation.PushAsync(page, true);
        }
        protected override bool OnBackButtonPressed()
        {
            var pageViewModel = new TermViewModel();

            var page = new TermPage(_term[0])
            {
                BindingContext = pageViewModel
            };

            this.Navigation.PushAsync(page, true);
            return(true);
        }
Exemplo n.º 3
0
        public App()
        {
            InitializeComponent();

            var viewModel = new TermViewModel();

            var page = new TermPage()
            {
                BindingContext = viewModel
            };

            MainPage = new NavigationPage(page);
        }