Hello friends here Ed learning with all of you, hear I want to pass data between views ... and what I read is very simple but I think something I'm not doing well ..
this is my code:
public void tryme() {
string x = lbl_kyo.Text;
try {
Navigation.PushAsync(new Page1(x));
} catch (Exception) {
DisplayAlert("", "crist & shit", "ok");
}
}
And this the controller of the view where I want to spend it
[XamlCompilation(XamlCompilationOptions.Compile)]
public partial class Page1: ContentPage {
public Page1(string data) {
InitializeComponent();
string Name = data;
lbl_name.Text = "" + Name;
}
}
when running it throws me the try / catch exception. Agradesco as always your help wise humans: 3
this is the exception ---