Back to Devexpress

NavBarGroup.Header Property

wpf-devexpress-dot-xpf-dot-navbar-dot-navbargroup-4cff6395.md

latest3.6 KB
Original Source

NavBarGroup.Header Property

Gets or sets the content of the group’s header. This is a dependency property.

Namespace : DevExpress.Xpf.NavBar

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

NuGet Package : DevExpress.Wpf.NavBar

Declaration

csharp
public object Header { get; set; }
vb
Public Property Header As Object

Property Value

TypeDescription
Object

The object to use for the group header.

|

Remarks

You can set the Header property to a string or any other object. In the latter case, you can provide a template to render this object via the NavBarGroup.HeaderTemplate and NavBarGroup.HeaderTemplateSelector or the NavBarViewBase.HeaderTemplate and NavBarViewBase.HeaderTemplateSelector properties.

To learn more, see the Group Content Model topic.

The following code snippets (auto-collected from DevExpress Examples) contain references 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-spreadsheet-how-to-apply-conditional-formatting-to-a-range-of-cells/CS/ConditionalFormatting_WPF_Examples/MainWindow.xaml#L14

xml
<Style TargetType="dxn:NavBarGroup">
    <Setter Property="Header" Value="{Binding Header}"/>
    <Setter Property="ItemsSource" Value="{Binding Items}"/>

wpf-spreadsheetcontrol-api-part-1/CS/SpreadsheetControl_WPF_API/MainWindow.xaml#L12

xml
<Style TargetType="dxn:NavBarGroup">
    <Setter Property="Header" Value="{Binding Header}" />
    <Setter Property="ItemsSource" Value="{Binding Items}" />

wpf-spreadsheetcontrol-api-part-2/CS/SpreadsheetControl_WPF_API_Part02/MainWindow.xaml#L12

xml
<Style TargetType="dxn:NavBarGroup">
    <Setter Property="Header" Value="{Binding Header}" />
    <Setter Property="ItemsSource" Value="{Binding Items}" />

See Also

Items

Content

NavBarGroup Class

NavBarGroup Members

DevExpress.Xpf.NavBar Namespace