wpf-devexpress-dot-xpf-dot-docking-dot-layoutgroup-6ed869b1.md
Use the TabContentCacheMode property instead.
Gets or sets if a tab item’s content is destroyed when another tab item is selected. This is a dependency property.
Namespace : DevExpress.Xpf.Docking
Assembly : DevExpress.Xpf.Docking.v25.2.dll
NuGet Package : DevExpress.Wpf.Docking
[Obsolete("Use the TabContentCacheMode property instead.")]
public bool DestroyContentOnTabSwitching { get; set; }
<Obsolete("Use the TabContentCacheMode property instead.")>
Public Property DestroyContentOnTabSwitching As Boolean
| Type | Description |
|---|---|
| Boolean |
true , if a tab item’s content is destroyed when another tab item is selected; otherwise, false. The default value is true.
|
If a tab item has a complex and bulky content, it takes some time to initialize and visualize it. By default, if the DestroyContentOnTabSwitching property is set to true tab item’s content is detached from an application visual tree when another tab item is activated. This means each time a tab item is reactivated, it will take a certain period of time to attach its content back to the visual tree. Set the DestroyContentOnTabSwitching property to false to change this behavior and to persist an inactive tab item’s content. This will decrease the time required to re-display a tab item’s content.
See Also