wpf-devexpress-dot-xpf-dot-navbar-dot-navbargroup-4cff6395.md
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
public object Header { get; set; }
Public Property Header As Object
| Type | Description |
|---|---|
| Object |
The object to use for the group header.
|
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.
<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
<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
<Style TargetType="dxn:NavBarGroup">
<Setter Property="Header" Value="{Binding Header}" />
<Setter Property="ItemsSource" Value="{Binding Items}" />
See Also