Skip to main content

DXTabControl.TabContentCacheMode Property

Gets or sets whether the DXTabControl's tabs are cached all at once or only when selected.

Namespace: DevExpress.Xpf.Core

Assembly: DevExpress.Xpf.Core.v14.2.dll

#Declaration

public TabContentCacheMode TabContentCacheMode { get; set; }

#Property Value

Type Description
TabContentCacheMode

A TabContentCacheMode enumerator value that specifies the DXTabControl's tabs cache mode.

#Remarks

By default, the TabContentCacheMode property is set to TabContentCacheMode.CacheAllTabs. This means when a DXTabControl is shown, all its tabs are loaded and cached simultanously. This can significantly speed up navigation between tabs, but will consume more memory.

You can manually set the TabContentCacheMode property to TabContentCacheMode.CacheTabsOnSelecting. In this case, a tab will be cached only after it was selected.

Note that the TabContentCacheMode property has an effect if only the DXTabControl.DestroyContentOnTabSwitching property equals false.

See Also