string Title = s.title;
string Magnitude = s.magnitude;
string Location = s.location;
string Depth = s.depth;
string latitude = s.latitude;
string Longitude = s.longitude;
string DT = s.date_time;
string url = s.link;
NavigationService.Navigate(new Uri("/Detailed.xaml?Title="+Title "&Magnitude="+Magnitude,UriKind.Relative));
I want to navigate all string values to next Windows Phone application, How I can pass?
And How I can access the values on next page? I was successful for only Title but how to pass all values to next page and show there?
Loading

Aditya PatilPosted Jul 25, 2014, 3:39 AM
This code helped me to pass multiple values to next page.
& Accessed all the values on next page by below code
protected override void OnNavigatedTo(NavigationEventArgs e)
{
base.OnNavigatedTo(e);
string TITLE = NavigationContext.QueryString["Title"];
MessageBox.Show(TITLE);
string MAGNITUDE = NavigationContext.QueryString["Magnitude"];
MessageBox.Show(MAGNITUDE);
string LOCATION = NavigationContext.QueryString["Location"];
MessageBox.Show(LOCATION);
string DEPTH = NavigationContext.QueryString["Depth"];
MessageBox.Show(DEPTH);
string LATITUDE = NavigationContext.QueryString["Latitude"];
MessageBox.Show(LATITUDE);
string LONGITUDE = NavigationContext.QueryString["Longitude"];
MessageBox.Show(LONGITUDE);
string DT = NavigationContext.QueryString["DT"];
MessageBox.Show(DT);
string URL = NavigationContext.QueryString["url"];
MessageBox.Show(URL);
}
Others will get help from this atleast.