Exemplo n.º 1
0
        private async void NavigateToDetailsPage(object sender, EventArgs e)
        {
            try
            {
                var detailsPage = new DetailsPageView();

                await Navigation.PushModalAsync(detailsPage);
            }
            catch (Exception exc)
            {
                throw;
            }
        }
Exemplo n.º 2
0
        private async void NavigateToDetailsPageView(object sender, EventArgs e)
        {
            try
            {
                var detailsPage = new DetailsPageView();

                var mainViewModel = BindingContext as MainViewModel;

                var selectedEmployee = ((ListView)sender).SelectedItem as Employee;

                mainViewModel.SendEmployeeMessageCommand.Execute(selectedEmployee);

                await Navigation.PushModalAsync(detailsPage);
            }
            catch (Exception exc)
            {
                throw;
            }
        }