top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

How to pass data between pages in Windows Phone 8 application??:

+1 vote
343 views

I need to know how to achieve the following thigs??
1. Passing a string value using formatted string.
2. Passing multiple parameters.
3. Passing complex object

posted Nov 6, 2014 by Karthi Kumar

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

0 votes
 
Best answer

1. Passing a string value using formatted string:

The easiest way to pass a parameter is just to use a string, something like:

private void btnNavigate_Click(object sender, RoutedEventArgs e) {
     NavigationService.Navigate(new Uri("/Page1.xaml?parameter=test", UriKind.Relative)); 
                  }

2. Passing multiple parameters.

 private void btnNavigate_Click(object sender, RoutedEventArgs e) {
     NavigationService.Navigate(new Uri("/Page1.xaml?parameter1=p1&meter2=p2", UriKind.Relative)); }
answer Nov 10, 2014 by Jdk
exact answer
Similar Questions
+1 vote

I am using Visual Studio 2013 for developing windows phone application how to test my application any one explain how can i achieve this... thanks in advance:)

+2 votes

I need XAP File for put my own application in my windows phone local store but i dont know where the XAP file placed in my application...........

+1 vote

I need complete code for sending mail(compose mail) from my windows phone application any one help how to achieve this........

+8 votes

I am using VS 2012 and install emulator 8. Now i need some sample application code for developing my first app in windows phone 8.

+1 vote

How to use windows phone default date picker control......

...