Skip to main content

DocumentGroup.ShowWhenEmpty Property

Gets or sets whether the DocumentGroup is displayed when it is empty.

Namespace: DevExpress.Xpf.Docking

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

NuGet Package: DevExpress.Wpf.Docking

Declaration

public bool ShowWhenEmpty { get; set; }

Property Value

Type Description
Boolean

true, if the DocumentGroup is displayed when it is empty; otherwise, false.

Remarks

You can leave an empty DocumentGroup visible in the layout when all its DocumentPanels are closed, by setting the ShowWhenEmpty to true.

If the ShowWhenEmpty property is set to false, the DocumentGroup is hidden when all DocumentPanels are closed. When closed documents are restored (by the DockControllerBase.Restore method or via the Closed Panels Bar), the DocumentGroup is made visible at its previous position and the restored DocumentPanel appears in this group.

See Also