Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

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.v24.2.dll

NuGet Packages: DevExpress.Utils, DevExpress.Wpf.Core

#Declaration

[DefaultValue(false)]
[DXCategory("Behavior")]
public virtual bool ShowMdiChildCaptionInParentTitle { get; set; }

#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