Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

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.v24.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