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.v24.2.dll
NuGet Package: DevExpress.Wpf.Core
#Declaration
public TabContentCacheMode TabContentCacheMode { get; set; }
#Property Value
Type | Description |
---|---|
Tab |
A Tab |
Available values:
Name | Description | Layout |
---|---|---|
None | Tabs are not cached. |
The Layout |
Cache |
The DXTab |
The Layout |
Cache |
The DXTab |
The Layout |
#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.
Specify the TabContentCacheMode property value before the DXTabControl is loaded. Changing the TabContentCacheMode property value in runtime has no effect.