Skip to main content

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