Back to Devexpress

LayoutGroup.TabContentCacheMode Property

wpf-devexpress-dot-xpf-dot-docking-dot-layoutgroup.md

latest3.1 KB
Original Source

LayoutGroup.TabContentCacheMode Property

Gets or sets whether tab contents are cached all at once when the group is displayed, each tab content is cached when the tab is selected, or tab contents are not cached. This is a dependency property.

Namespace : DevExpress.Xpf.Docking

Assembly : DevExpress.Xpf.Docking.v25.2.dll

NuGet Package : DevExpress.Wpf.Docking

Declaration

csharp
public TabContentCacheMode TabContentCacheMode { get; set; }
vb
Public Property TabContentCacheMode As TabContentCacheMode

Property Value

TypeDefaultDescription
TabContentCacheModeNone

A TabContentCacheMode enumeration value that specifies how tab contents are cached.

|

Available values:

NameDescriptionLayoutGroup specifics
None

Tabs are not cached.

|

The LayoutGroup caches a tab when a user selects it. When a user switches to another tab, the tab’s cached content is kept but removed from an application’s visual tree.

| | CacheAllTabs |

The DXTabControl caches all its tabs when the control is loaded and displayed.

|

The LayoutGroup caches all its tabs when the control is loaded and displayed. When a user switches to another tab, the cached content is kept in the application’s visual tree.

| | CacheTabsOnSelecting |

The DXTabControl caches a tab when a user selects it.

|

The LayoutGroup caches a tab when a user selects it. When a user switches to another tab, the cached content is kept in the application’s visual tree.

|

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the TabContentCacheMode property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

wpf-diagram-mdi/CS/MainWindow.xaml#L136

xml
GroupBorderStyle="Tabbed"
    TabContentCacheMode="CacheTabsOnSelecting" />
<dxdo:LayoutPanel

See Also

LayoutGroup Class

LayoutGroup Members

DevExpress.Xpf.Docking Namespace