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

RestoreLayoutOptions.AddNewPanels Attached Property

Gets or sets whether the Dock Layout Manager should automatically add layout panels that are present in the current layout, but absent in its restored version, to its ClosedPanels collection. This is a dependency property.

Namespace: DevExpress.Xpf.Docking

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

NuGet Package: DevExpress.Wpf.Docking

#Declaration

#Returns

Type Description
Boolean

true, if the target DockLayoutManager is allowed to add new layout panels; otherwise, false.

#Remarks

When AddNewPanels is set to true (this value is used by default), DockLayoutManager moves panels that are present in the current layout, but asbent in its restored version, to the ClosedPanels collection. You can traverse through these panels and restore them manually (see: Manage Dock Panels in Code). When this property is set to false, DockLayoutManager completely deletes these panels during the restore operation.

See Also