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

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