DXTabControl.DestroyContentOnTabSwitching Property

Obsolete. Gets or sets whether to the destroy tab item content when switching between tabs. This is a dependency property.

Namespace: DevExpress.Xpf.Core

Assembly: DevExpress.Xpf.Core.v20.1.dll


[Obsolete("Use the TabContentCacheMode property.")]
public bool DestroyContentOnTabSwitching { get; set; }
<Obsolete("Use the TabContentCacheMode property.")>
Public Property DestroyContentOnTabSwitching As Boolean

Property Value

Type Description

true, to destroy the tab item content when switching between tabs; otherwise, false.


If the DestroyContentOnTabSwitching property is set to true (the default behavior), tab item content is destroyed after switching to another item, and created again when the item is selected. This reduces the amount of memory consumed by the application.

To achieve faster performance, set the DestroyContentOnTabSwitching property to false. In this instance, tab item content is created only once, and stored until the whole item is destroyed.

The DestroyContentOnTabSwitching property affects the tabs cache mode specified via the DXTabControl.TabContentCacheMode property. See this link to learn more.

See Also