Back to Devexpress

PropertyDefinitionBase.Header Property

wpf-devexpress-dot-xpf-dot-propertygrid-dot-propertydefinitionbase-580b12cd.md

latest2.4 KB
Original Source

PropertyDefinitionBase.Header Property

Gets or sets the property header’s caption. This is a dependency property.

Namespace : DevExpress.Xpf.PropertyGrid

Assembly : DevExpress.Xpf.PropertyGrid.v25.2.dll

NuGet Package : DevExpress.Wpf.PropertyGrid

Declaration

csharp
public string Header { get; set; }
vb
Public Property Header As String

Property Value

TypeDescription
String

An object that represents the header’s caption.

|

Remarks

If the Header property isn’t specified, the header’s caption is specified by the name of the property in the underlying source collection (i.e., the value of the PropertyDefinitionBase.Path property).

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the Header 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.

wpf-property-grid-use-data-annotations-to-define-property-editor/CS/PropertyGridEditorAttribute/MainWindow.xaml#L53

xml
<DataTemplate x:Key="PropertyTemplate">
    <dxprg:PropertyDefinition Header="Full Address" HeaderShowMode="OnlyHeader"/>
</DataTemplate>

See Also

Path

PropertyDefinitionBase Class

PropertyDefinitionBase Members

DevExpress.Xpf.PropertyGrid Namespace