Skip to main content
Bar

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

Declaration

public bool AddNewItems { get; set; }

Property Value

Type Description
Boolean

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

Remarks

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