Пример #1
0
        async void IncluirPessoa_clicked(object sender, EventArgs e)
        {
            Page page            = new FamiliPersonPage(viewModel.ResponsibleUser);
            var  familyPersonNav = new NavigationPage(page);

            await this.Navigation.PushModalAsync(familyPersonNav);

            //            await Navigation.PushModalAsync(new NavigationPage(new FamiliPersonPage(viewModel.ResponsibleUser)));
        }
Пример #2
0
        async void OnItemSelected(object sender, SelectedItemChangedEventArgs args)
        {
            if (!(args.SelectedItem is FamilyPerson person))
            {
                return;
            }
            Page page            = new FamiliPersonPage(person);
            var  familyPersonNav = new NavigationPage(page);

            await this.Navigation.PushModalAsync(familyPersonNav);

            // await Navigation.PushModalAsync(new NavigationPage(new FamiliPersonPage(person)));

            // Manually deselect item.
            FamilyListView.SelectedItem = null;
        }