windows phone 8 - Passing Collection object from one page to another -


i have 2 xaml page. trying passing list array of string 1 page during navigation. can pass string object not able pass collection object. can please me. have write code below.

first xaml

list<string> array = //contains array of strings navigationservice.navigate(new uri("/listviewcontroller.xaml?parameter="+array, urikind.relative)); 

second xaml i.e listviewcontroller.xaml

protected override void onnavigatedto(navigationeventargs e) { base.onnavigatedto(e); string msg; if (navigationcontext.querystring.trygetvalue("parameter",out msg)) { foreach (char str in msg) debug.writeline("data "+ str); } } 

you can try this

pass non-string parameters between pages in windows phone 8 app


Comments