locked
winrt back page navigation RRS feed

  • Question

  • hi all,

       We are new to WINDOWS 8 development. 

    We facing a problem with WinRt Back Page Navigation, that is every time the page refreshing (while back key pressed).

    How to maintain page level state in windows 8 while back page navigation.

    Tuesday, September 10, 2013 9:47 AM

Answers

  • Try using Page.NavigationCacheModeNavigationCacheMode.Required; and see if this fixes your issue. 

    Or otherwise you can put logic initialization code inside OnNavigatedTo and bind that to App DataViewModel to persist the same values when page is again displayed. 


    Thanks, Sachin


    • Edited by Sachin S Tuesday, September 10, 2013 2:02 PM
    • Proposed as answer by Anne Jing Wednesday, September 11, 2013 7:30 AM
    • Marked as answer by Anne Jing Monday, September 16, 2013 3:52 AM
    Tuesday, September 10, 2013 1:59 PM