windows phone 7 - Refresh Or Update Page on click of back button (WP7) -


i have used standard navigation service in app problem is

accounts page (show info datacontext) -> add accounts page

now if give navigation accounts page add accounts page creates new instance of accounts page below

accounts page (old data) -> add accounts page -> accounts page (updated data)

when new instance data on page shows new entry if add accounts page again & accounts page (old data) not show updated entryso have home pag & again navigate accounts page updated should make add accounts page save button send me accounts page & updated?

i tried

navigationservice.goback();

navigationservice.removebackentry();

navigationservice.navigate(new uri(string.format("/accounts.xaml?refresh=true"), urikind.relative));

but nothing worked wanted please help

navigationservice.goback(); right way. problem need focus on is: "how refresh data when going accounts page". solution depends on application's architecture. if used mvvm pattern, it's matter of adding new account data source in viewmodel. otherwise, should reload account list in onnavigatedto method of page:

protected override void onnavigatedto(navigationeventargs e) {     // load accounts } 

Comments

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -