WinRT/UWP Frame and Page caching: How to create new page instance on Navigate() and keep the page instance on GoBack()

后端 未结 7 2112
长发绾君心
长发绾君心 2020-11-29 21:23

I\'m trying to create an UWP (Universal Windows App) application with C#. My problem is the Frame control: If I use it without NavigationCacheMode = Requi

7条回答
  •  旧巷少年郎
    2020-11-29 22:02

    Because there was no solution to this problem, I had to reimplement all paging relevant classes: Page, Frame, SuspensionManager, etc...

    The solution can be downloaded here: https://github.com/MyToolkit/MyToolkit/wiki/Paging-Overview

    Update:

    The page class now also provides the OnNavigatingFromAsync method to show for example an async popup and cancel navigation if required...

提交回复
热议问题