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

DockLayoutManager.WindowTitleFormat Property

Gets or sets the format string used to format the window’s title. This is a dependency property.

Namespace: DevExpress.Xpf.Docking

Assembly: DevExpress.Xpf.Docking.v24.2.dll

NuGet Package: DevExpress.Wpf.Docking

#Declaration

public string WindowTitleFormat { get; set; }

#Property Value

Type Description
String

The format string used to format the window’s title.

#Remarks

This property specifies the format string used to format text within the main window’s title. The format string is applied when the following conditions are met:

The format specified by the WindowTitleFormat property must follow the Composite Formatting rules. See the Composite Formatting topic in MSDN to learn more.

Typically, the format string contains custom text plus the “{0}” and “{1}” identifiers:

  • {0} - identifies the window’s title
  • {1} - identifies the maximized DocumentPanel’s caption.

The default value of the WindowTitleFormat property is “{0} - [{1}]”. The following example shows how to swap the identifiers:

dockManager1.ShowMaximizedDocumentCaptionInWindowTitle = true;
dockManager1.WindowTitleFormat = "[{1}] - {0}";
See Also