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

LayoutGroup.DestroyContentOnTabSwitching Property

OBSOLETE

Use the TabContentCacheMode property instead.

Gets or sets if a tab item’s content is destroyed when another tab item is selected. This is a dependency property.

Namespace: DevExpress.Xpf.Docking

Assembly: DevExpress.Xpf.Docking.v24.2.dll

NuGet Package: DevExpress.Wpf.Docking

#Declaration

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

#Property Value

Type Description
Boolean

true, if a tab item’s content is destroyed when another tab item is selected; otherwise, false. The default value is true.

#Remarks

If a tab item has a complex and bulky content, it takes some time to initialize and visualize it. By default, if the DestroyContentOnTabSwitching property is set to true tab item’s content is detached from an application visual tree when another tab item is activated. This means each time a tab item is reactivated, it will take a certain period of time to attach its content back to the visual tree. Set the DestroyContentOnTabSwitching property to false to change this behavior and to persist an inactive tab item’s content. This will decrease the time required to re-display a tab item’s content.

See Also