Skip to main content

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.v23.2.dll

NuGet Package: DevExpress.Wpf.Controls

Declaration

public NavigationCacheMode NavigationCacheMode { get; set; }

Property Value

Type Default Description
NavigationCacheMode Disabled

The cache mode for NavigationFrame content.

Available values:

Name Description
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