LayoutGroup.DestroyContentOnTabSwitching Property

Obsolete. 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.v20.1.dll

Declaration

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

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