Skip to main content

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:

<dxdo:DockLayoutManager Name="dockManager1" ShowMaximizedDocumentCaptionInWindowTitle="True" WindowTitleFormat="{}[{1}] - {0}">
...
See Also