Back to Devexpress

DXTabControl.DestroyContentOnTabSwitching Property

wpf-devexpress-dot-xpf-dot-core-dot-dxtabcontrol-4126a6be.md

latest2.1 KB
Original Source

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

NuGet Package : DevExpress.Wpf.Core

Declaration

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

Property Value

TypeDescription
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

TabContentCacheMode

DXTabControl Class

DXTabControl Members

DevExpress.Xpf.Core Namespace