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.v18.2.dll
Declaration
Property Value
Type | Description |
---|---|
TabContentCacheMode | A TabContentCacheMode enumerator value that specifies the DXTabControl‘s tabs cache mode. |
Available values:
Name | Description |
---|---|
None | Tabs caching is disabled. |
CacheAllTabs | All the DXTabControl‘s tabs are simultaneously cached after the DXTabControl is loaded and shown. |
CacheTabsOnSelecting | DXTabControl‘s tabs are cached only after they have been selected by an end-user. |
Remarks
By default, the DXTabControl does not cache its tabs. If you set the TabContentCacheMode to TabContentCacheMode.CacheAllTabs, all the DXTabControl‘s tabs will be loaded and cached simultaneously after the DXTabControl is shown. 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.