windows phone 7 - WP7 Tombstoning and Querystring -
i running basic xml reader , pass data details page using:
private void haberlerlistbox_selectionchanged(object sender, selectionchangedeventargs e) { if (e.addeditems.count > 0) { navigationservice.navigate(new uri("/news.xaml", urikind.relative)); frameworkelement root = application.current.rootvisual frameworkelement; root.datacontext = (haberitem)e.addeditems[0]; ((listbox)sender).selectedindex = -1; } }
for week trying read , understand how deal tombstoning failed. managed use tombstone helper couldn't save images , webbrowser content.
in earlier question: wp7 - resume page assigned . heard can save navigation url when user clicks wp7 navigate same url before. (for records:i don't use viewmodel)
i view on how save url damned :) application can tombstone , can rest while :d.
thanks in advance.
the page uri, including querystring, restored when application returns tombstoned state. rather using tombstone helper recommend learn how tombstoning works, have read of article:
http://www.scottlogic.co.uk/blog/colin/2011/05/a-simple-windows-phone-7-mvvm-tombstoning-example/
it's not complicated.
Comments
Post a Comment