Page Caching

By default, Page instances are not kept alive on the back and forward stacks; a new instance gets created when you call GoBack or GoForward. This means you must take care to remember and restore their state, although you will probably already have code to do this in order to properly handle suspension.

You can change this behavior on a Page-by-Page basis by setting Page’s NavigationCacheMode property to one of the following values:

Disabled—The default value that causes the page to be recreated every time.

Required—Keeps the page alive and uses this cached instance every time (for GoForward and GoBack, not for Navigate).

Enabled—Keeps the page alive and uses the cached instance only if the size of the Frame’s cache hasn’t been ...

Get Universal Windows® Apps with XAML and C# Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.