locked
Iimplement ViewState of my window store app

    Question

  • Hi,

    Any idea on how to implement ViewState of my window store app. The intent of that implementation is to be able to display previous view when navigating to new page and when clicking Back button.

    Thanks

    Thursday, August 28, 2014 6:15 AM

Answers

  • Hi Elezard,

    Ref to the tutorial: Part 2: Manage app lifecycle and state, you could see how to save current page value into pageState, and use it when entering the page again. Furthermore you could also set Page Cachemode by

    this.NavigationCacheMode = NavigationCacheMode.Required;

    Or am I misunderstand something for yout ViewState?

    --James


    <THE CONTENT IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, WHETHER EXPRESS OR IMPLIED>
    Thanks
    MSDN Community Support

    Please remember to "Mark as Answer" the responses that resolved your issue. It is a common way to recognize those who have helped you, and makes it easier for other visitors to find the resolution later.

    Thursday, August 28, 2014 11:14 AM
    Moderator