Skip to main content
A newer version of this page is available. .

PageView.ItemCacheMode Property

Gets or sets how PageViewItems that belong to this PageView are cached. This is a dependency property.

Namespace: DevExpress.Xpf.WindowsUI

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

NuGet Packages: DevExpress.WindowsDesktop.Wpf.Controls, DevExpress.Wpf.Navigation

Declaration

public ItemCacheMode ItemCacheMode { get; set; }

Property Value

Type Description
DevExpress.Xpf.WindowsUI.ItemCacheMode

An ItemCacheMode enumerator value that specifies how PageViewItems that belong to this PageView are cached.

Remarks

Depending on the ItemCacheMode property value, PageView pages can be cached in three different modes:

  • CacheAll - all PageView pages are being loaded and cached during application start-up. This mode provides the fastest navigation between pages at the cost of prolonged initialization.
  • CacheOnSelecting - a page is initialized and cached only when an end-user navigates to this page for the first time.
  • None (default mode) - pages are not cached. Each subsequent page activation causes this page to re-load its content. The fastest (at the start-up) and the most memory-saving mode whose disadvantage is the slowest navigation through the PageView pages.
See Also