i'v added some button to my ApplicationBar, which also has an update, and I attached an onClick event handler to it, but I included this applicationBar in App.xaml and I included it in all my pages, so now getting it accurate uri from which the refresh button ( ReloadUri ) was pressed with this code --->
private void ReloadBtn_Click(object sender, EventArgs e) { var ReloadUri = (((App)Application.Current).RootFrame.Content as PhoneApplicationPage).NavigationService.CurrentSource; (Application.Current.RootVisual as PhoneApplicationFrame).Navigate(ReloadUri); }
but the second line of code does not move above the page ( navigation does not work )
source share