1. Define public global variables in the app class
Pass value:
Public partial class app: Application
{
....
Public String staticvar {Get; set;} // global variable
.....
}
Usage:
(Application. Current as APP). staticvar = "ABC ";
2. Add parameters in the URI
Pass value:
String S2 = "ABC ";
String uri = "/page1.xaml? S2 = "+ S2;
// Navigation
This. navigationservice. navigate (New uri (Uri, urikind. Relative ));
Usage:
String S2;
Idictionary <string, string> Qs = This. navigationcontext. querystring;
If (Qs. containkey ("S2 "))
{
Qs. trygetvalue ("S2", out
S2 );
}
3.UseIdictionary of the phoneapplicationservice class
<String, Object> state {Get ;};
Pass value:
Phoneapplicationservice. Current. State ["S3"] = "ABC ";
Usage:
String S3;
Phoneapplicationservice. Current. state. trygetvalue ("S3", out S3 );
4. Use isolatedstoragesettings
Pass value:
Isolatedstoragesettings. applicationsettings ["S4"] = "ABC ";
Usage:
String S4;
Isolatedstoragesettings. applicationsettings. trygetvalue ("S4", out S4 );