Bar

BarManager.HideBarsWhenMerging Property

Gets or sets whether bars that belong to the current child Bar Manager are hidden from the child form during a merge operation. This option is in effect if you subscribed to the parent BarManager's BarManager.Merge and BarManager.UnMerge events.

Namespace: DevExpress.XtraBars

Assembly: DevExpress.XtraBars.v20.1.dll

Declaration

[DefaultValue(true)]
[DXCategory("Behavior")]
public bool HideBarsWhenMerging { get; set; }
<DefaultValue(True)>
<DXCategory("Behavior")>
Public Property HideBarsWhenMerging As Boolean

Property Value

Type Default Description
Boolean

true

A Boolean value that specifies the default visibility of child bars during a merge operation.

Remarks

When the merge mechanism is invoked, the parent and child MainMenus are merged automatically (the child MainMenu is hidden from the child form). Other bars are automatically hidden from the child form according to the BarManager.HideBarsWhenMerging and Bar.HideWhenMerging properties, provided that the parent BarManager's BarManager.Merge and BarManager.UnMerge events are handled. If these events are not subscribed to, the BarManager.HideBarsWhenMerging and Bar.HideWhenMerging properties are ignored and the bars are not automatically hidden.

The default visibility of all child bars during merging is specified by the child BarManager's HideBarsWhenMerging property. Individual child bars can override this setting via the Bar.HideWhenMerging property. If the Bar.HideWhenMerging property is set to Default, a bar's visibility during merging is specified by the Bar.HideWhenMerging property.

See Also