Pages are just classes. You can pass parameters to them using the constructor, public properties, public methods, etc
For example, to pass via the constructor
private void Button_Clicked(object sender, EventArgs e)
{
string valueName = name.Text;
Detail = new NavigationPage(new Page1(valuename));
IsPresented = false;
}
in Page1, modify the constructor to accept a parameter
string _name;
public Page1 (string name)
{
InitializeComponent ();
_name = name;
}
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…