All docs
V20.1
20.2 (EAP/Beta)
20.1
19.2
19.1
The page you are viewing does not exist in version 19.1. This link will take you to the root page.
18.2
The page you are viewing does not exist in version 18.2. This link will take you to the root page.
18.1
The page you are viewing does not exist in version 18.1. This link will take you to the root page.
17.2
The page you are viewing does not exist in version 17.2. This link will take you to the root page.

Bar.AutoUpdateMergedBars Property

Gets or sets whether items added to/removed from a child bar merged with this bar are automatically added to/removed from this bar.

Namespace: DevExpress.XtraBars

Assembly: DevExpress.XtraBars.v20.1.dll

Declaration

[DefaultValue(DefaultBoolean.Default)]
[DXCategory("Behavior")]
public DefaultBoolean AutoUpdateMergedBars { get; set; }
<DefaultValue(DefaultBoolean.Default)>
<DXCategory("Behavior")>
Public Property AutoUpdateMergedBars As DefaultBoolean

Property Value

Type Default Description
DefaultBoolean

Default

True if items added to/removed from a child bar merged with this bar are automatically added to/removed from this bar; otherwise, Default or False.

Examples

This example shows how to automatically update a parent status bar that is merged with a child status bar.

For example, a child status bar displays a page number. Then a new message that displays a number of words is added to the child status bar.

childStatusBar.ItemLinks.Add(new BarStaticItem() { Caption = "750 WORDS" });

If the child status bars is merged with the parent status bar, the new message is not automatically added to the parent status bar when you add it to the child status bar. To update the parent status bar automatically, set its AutoUpdateMergedBars property to True.

parentStatusBar.AutoUpdateMergedBars = DevExpress.Utils.DefaultBoolean.True;

As a result, the new message is automatically added to the parent status bar, when it is added to the child status bar.

NOTE

When a child form is maximized, ribbons and bars are merged automatically while status bars should be merged manually. See How to: Merge RibbonStatusBar Objects.

See Also