Back to Devexpress

NavigationFrame.NavigationCacheMode Property

wpf-devexpress-dot-xpf-dot-windowsui-dot-navigationframe-f5493bdc.md

latest2.5 KB
Original Source

NavigationFrame.NavigationCacheMode Property

Gets or sets the cache mode for NavigationFrame content. This is a dependency property.

Namespace : DevExpress.Xpf.WindowsUI

Assembly : DevExpress.Xpf.Controls.v25.2.dll

NuGet Package : DevExpress.Wpf.Controls

Declaration

csharp
public NavigationCacheMode NavigationCacheMode { get; set; }
vb
Public Property NavigationCacheMode As NavigationCacheMode

Property Value

TypeDefaultDescription
NavigationCacheModeDisabled

The cache mode for NavigationFrame content.

|

Available values:

NameDescription
Disabled

Content caching disabled. A new instance of a View (screen) is created on each display.

| | Enabled |

The content is cached until the frame’s cache size is exceeded (see the NavigationFrame.NavigationCacheMaxSize property).

| | Required |

The content is always cached and its cached instance is reused for each display. The frame’s cache size is ignored.

|

Remarks

The NavigationFrame allows you to cache displayed Views. The NavigationCacheMode property specifies how to cache Views:

Call the ClearCache() method to clear the cache.

The NavigationPage contains the attached NavigationPage.NavigationCacheMode property that overrides the NavigationCacheMode property for this page.

See Also

NavigationCacheMode

NavigationFrame Class

NavigationFrame Members

DevExpress.Xpf.WindowsUI Namespace