NavigationFrame.NavigationCacheMode Property

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

Namespace: DevExpress.Xpf.WindowsUI

Assembly: DevExpress.Xpf.Controls.v21.1.dll

Declaration

public NavigationCacheMode NavigationCacheMode { get; set; }

Property Value

Type Description
NavigationCacheMode

A NavigationCacheMode enumerator value specifying the cache mode for the NavigationFrame‘s content. The default is NavigationCacheMode.Disabled.

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

Depending on the NavigationCacheMode property value, a NavigationFrame can cache Views to which it navigates in multiple modes - cache always, cache until the cache size exceeds the defined value, or do not cache at all. NavigationPages provide the attached NavigationPage.NavigationCacheMode property that overrides the NavigationCacheMode method for specific elements.

See Also