Skip to main content

DXTabControl.DestroyContentOnTabSwitching Property

OBSOLETE

Use the TabContentCacheMode property.

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.v23.2.dll

NuGet Package: DevExpress.Wpf.Core

Declaration

[Obsolete("Use the TabContentCacheMode property.")]
public bool DestroyContentOnTabSwitching { get; set; }

Property Value

Type Description
Boolean

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

Remarks

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