private void Button_Click(object sender, RoutedEventArgs e) { String message = MessageTextBox.Text; PhotoPage nextPage = new PhotoPage(this); this.NavigationService.Navigate(nextPage, message); // this.NavigationService.Navigate(new Uri("PhotoPage.xaml", UriKind.Relative)); }