BaseLayoutItem.Caption Property
Gets or sets the layout item’s caption.
Namespace: DevExpress.Xpf.Docking
Assembly: DevExpress.Xpf.Docking.v19.1.dll
Declaration
Property Value
Type | Description |
---|---|
Object | A string value that specifies the layout item’s caption. |
Remarks
By default, the Caption is displayed in the BaseLayoutItem‘s header and the same object is shown within a tab when the BaseLayoutItem is in a tabbed state. You can set a different tab caption using the BaseLayoutItem.TabCaption property. The following figure illustrates a panel with different Caption and BaseLayoutItem.TabCaption property values.
Generally, you set the Caption as a string value. If you assign any other object to item’s caption, you may need a DataTemplate object to visualize it. Use the BaseLayoutItem.CaptionTemplate property in this case.
Related GitHub Examples
The following code snippets (auto-collected from DevExpress Examples) contain references to the Caption property.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.