I've a class
class PTD
{
public string Player1 { get; set; }
public string Player2 { get; set; }
}
And a Page1 have 2 text boxes and 1 button. The Button Click Method have following code:
PTD ptd = new PTD();
ptd.Player1=textbox1.text.ToString();
ptd.Player2=textbox2.text.ToString();
NavigationService.Navigate(new Uri ("/Page2.xaml?msg=", UriKind.RelativeOrAbsolute));
On Page2 I have 2 text blocks where i want my class data to appear on navigation. What additional code should i write to perform this action?