I created a new blank page xaml for windows 8 app. I have a textbox in the main page so the users can type their name in the main page. Also it has a button so that they can open new frame which is the blank page with the following codes :
this.Frame.Navigate(typeof(BlankPage1));
I made a get set class for the textbox so that they can see the value of the textbox in the blank page.
public string t1
{
get { return textbox1.Text; }
set { textbox1.Text = value; }
}
And these are the codes for the blank page :
protected override void OnNavigatedTo(NavigationEventArgs e)
{
MainPage p1 = new MainPage();
textbox1.Text = p1.t1;
}
But it won't show the value of the textbox in the blank page. It only shows "TextBox" in the textbox