How does windows 8 manage stack of Pages in Frame?

后端 未结 4 986
感动是毒
感动是毒 2021-01-16 22:52

How does Windows 8 manage a stack of Pages in a Frame?

And how can I clear the whole stack programmatically, as in I need to \'pop\' all pages in a stack and return

4条回答
  •  [愿得一人]
    2021-01-16 23:21

    Have a look at the methods of the Frame class

    In this article (a must read about navigation):

    private void ResetPageCache()
    {
        var cacheSize = ((Frame) Parent).CacheSize;
        ((Frame) Parent).CacheSize = 0;
        ((Frame) Parent).CacheSize = cacheSize;
    }
    

提交回复
热议问题