Exemple #1
0
        private async void btnDetalhe_Clicked(object sender, EventArgs e)
        {
            var contato = new Contato
            {
                Nome      = "Rafael dos Santos",
                Idade     = 33,
                Profissao = "Lutador",
                Pais      = "Brasil"
            };

            var detalhePage = new DetalheView();

            detalhePage.BindingContext = contato;
            await Navigation.PushModalAsync(detalhePage);
        }
        private async void btnDetalhe_Clicked(object sender, EventArgs e)
        {
            var contato = new Contato {
                Nome      = "Flavio Mariotti",
                Idade     = 32,
                Profissao = "Developer",
                Pais      = "Brasil"
            };

            // await Navigation.PushAsync(new DetalheView() { BindingContext = contato });

            var detalhePage = new DetalheView();

            detalhePage.BindingContext = contato;
            await Navigation.PushAsync(detalhePage);
        }