Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

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.v24.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