Skip to main content

BarManager.AddNewItems Property

Gets or sets if new items, added to the BarManager object after a customized layout is saved to an .xml file, will remain after restoring this layout. This is a dependency property.

Namespace: DevExpress.Xpf.Bars

Assembly: DevExpress.Xpf.Core.v24.1.dll

NuGet Package: DevExpress.Wpf.Core


public bool AddNewItems { get; set; }

Property Value

Type Description

true if new items will remain after a layout is restored from an .xml file; otherwise, false.


When restoring a previously saved custom layout, any changes that were made after saving a layout will be discarded. So, the layout you get is, in fact, the one that was previously saved. You can combine both the restored and the new custom layout by setting the AddNewItems property to true. In this case, newly added items won’t be removed after restoring a custom layout.

See Also