Skip to main content

DXTabControl.DestroyContentOnTabSwitching Property

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

Namespace: DevExpress.Xpf.Core

Assembly: DevExpress.Xpf.Core.v14.2.dll

#Declaration

[Obsolete("Warning! The DestroyContentOnTabSwitching property is now obsolete. Please use the TabContentCacheMode property instead.")]
public bool DestroyContentOnTabSwitching { get; set; }

#Property Value

Type Description
Boolean

true to destroy tab items' content when switching between tabs; otherwise, false.

#Remarks

If the DestroyContentOnTabSwitching property is set to true (the default behavior), tab item's 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, a tab item's content is created only once, and stored until the whole item is destroyed.

See Also