Back to Devexpress

RestoreLayoutOptions.AddNewPanels Attached Property

wpf-devexpress-dot-xpf-dot-docking-dot-restorelayoutoptions-4c473240.md

latest2.0 KB
Original Source

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.v25.2.dll

NuGet Package : DevExpress.Wpf.Docking

Declaration

See GetAddNewPanels(DependencyObject) and SetAddNewPanels(DependencyObject, Boolean).

Returns

TypeDescription
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

RestoreLayoutOptions Class

RestoreLayoutOptions Members

DevExpress.Xpf.Docking Namespace