using System.Collections.Generic;
public class TelaCadastro : ContentPage
Label lblNome = new Label()
Text = "Digite seu Nome:"
enNome = new Entry() { Text = Bindin ;
enNome.SetBinding(Entry.TextProperty,"Nome");
Label lblIdade = new Label()
Text = "Digite sua Idade:"
Entry enIdade = new Entry() { };
enIdade.SetBinding(Entry.TextProperty, "Idade");
Label lblEstado = new Label()
Text = "Digite seu Estado:"
Entry enEstado = new Entry() { };
enEstado.SetBinding(Entry.TextProperty, "Estado");
Button btnSalvar = new Button()
HorizontalOptions = LayoutOptions.Center
btnSalvar.Clicked += (sender, args) => GoPaginaDados();
StackLayout StackTotal = new StackLayout()
BackgroundColor = Color.LightGray,
StackLayout StackBox = new StackLayout()
BackgroundColor = Color.White,
HorizontalOptions = LayoutOptions.FillAndExpand,
VerticalOptions = LayoutOptions.FillAndExpand,
StackTotal.Children.Add(StackBox);
private void GoPaginaDados()
BindingContext = new TelaDados();
DisplayAlert("ok", enNome.Text, "Ok");
Navigation.PushAsync(new TelaDados());