locked
How to refresh a page when using the back button? RRS feed

  • Question

  • Hi all,

    I'm writing a pretty simple app that as a main page and a configuration page.  When the user navigates to the main page I want them to change their settings and click the back button to get back to the main page, but when they get there, I want the page to refresh.  This should be simple right?

    Thanks,
    Matt

    Monday, February 28, 2011 11:25 AM

Answers

  • ugg, sorry, I was focusing on OnNavigatedFrom as in my head I had it worng.

    protected override void OnNavigatedTo(System.Windows.Navigation.NavigationEventArgs e)
            {
                base.OnNavigatedTo(e);
                displayData();
            }


     works just fine.

     

     
    Monday, February 28, 2011 12:46 PM