Back to Devexpress

PropertyDefinitionBase.HeaderShowMode Property

wpf-devexpress-dot-xpf-dot-propertygrid-dot-propertydefinitionbase-4006be68.md

latest2.8 KB
Original Source

PropertyDefinitionBase.HeaderShowMode Property

Gets or sets the property display mode. This is a dependency property.

Namespace : DevExpress.Xpf.PropertyGrid

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

NuGet Package : DevExpress.Wpf.PropertyGrid

Declaration

csharp
public HeaderShowMode HeaderShowMode { get; set; }
vb
Public Property HeaderShowMode As HeaderShowMode

Property Value

TypeDescription
HeaderShowMode

A HeaderShowMode enumeration value that specifies the property display mode.

|

Available values:

NameDescription
Left

Displays the header of a property or collection to the left of the element’s value.

| | Top |

Displays the header of a property or collection at the top of the element’s value.

| | Hidden |

Hides the header of a property or collection.

| | OnlyHeader |

Hides the value of a property or collection.

| | OnlyExpander |

Hides the text in the header of an expandable property or collection.

|

Remarks

To learn more, see Properties.

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

xml
<DataTemplate x:Key="CollectionDefinitionTemplate">
    <dxprg:CollectionDefinition HeaderShowMode="OnlyHeader" AllowRemoveItems="False"/>
</DataTemplate>

See Also

PropertyDefinitionBase Class

PropertyDefinitionBase Members

DevExpress.Xpf.PropertyGrid Namespace