XtraForm.ShowMdiChildCaptionInParentTitle Property

Gets or sets whether the caption of the currently active multiple-document interface (MDI) child is merged with the MDI parent caption, and shown in the form's title bar.

Namespace: DevExpress.XtraEditors

Assembly: DevExpress.Utils.v20.1.dll

Declaration

[DefaultValue(false)]
[DXCategory("Behavior")]
public virtual bool ShowMdiChildCaptionInParentTitle { get; set; }
<DefaultValue(False)>
<DXCategory("Behavior")>
Public Overridable Property ShowMdiChildCaptionInParentTitle As Boolean

Property Value

Type Default Description
Boolean

false

true, if the MDI child caption is merged with the MDI parent caption; otherwise, false.

Remarks

By default, the caption of the currently active MDI child is not displayed in the XtraForm's the title bar. In the figure below, you can see the MDI parent form displaying its caption Form1, while the caption document1 of the active MDI child is not displayed in the title bar.

XtraForm_ShowMdiChildCaptionInParentTitle_False

Set the ShowMdiChildCaptionInParentTitle property to true to merge the MDI parent and child captions, and show the resulting string in the title bar. See the figure below.

XtraForm_ShowMdiChildCaptionInParentTitle_True

By default, the resulting string is composed of the child caption preceding the parent caption separated by a hyphen. You can use the XtraForm.MdiChildCaptionFormatString property to provide a custom composite format string.

IMPORTANT

The ShowMdiChildCaptionInParentTitle property should be used for the parent MDI form only. Setting this property for child MDI windows to true gives no effect.

See Also