wpf-devexpress-dot-xpf-dot-docking-dot-docklayoutmanager-3db1a912.md
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.v25.2.dll
NuGet Package : DevExpress.Wpf.Docking
public string WindowTitleFormat { get; set; }
Public Property WindowTitleFormat As String
| Type | Description |
|---|---|
| String |
The format string used to format the window’s title.
|
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:
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}">
...
dockManager1.ShowMaximizedDocumentCaptionInWindowTitle = true;
dockManager1.WindowTitleFormat = "[{1}] - {0}";
See Also