Skip to main content

ThemedWindow.HeaderItems Property

Gets the header items collection displayed in the current ThemedWindow. This is a dependency property.

Namespace: DevExpress.Xpf.Core

Assembly: DevExpress.Xpf.Core.v22.2.dll

NuGet Package: DevExpress.Wpf.Core


public ObservableCollection<object> HeaderItems { get; }

Property Value

Type Description

A header items collection.


Create a HeaderItemControl object and add it to the HeaderItems collection to display an item within the ThemedWindow‘s header.

HeaderItems and ToolbarItems are not intended to be used with RibbonControl.


When the HeaderItemsSource property is specified, the ThemedWindow ignores the HeaderItems property.

The following code snippet shows how to add multiple header items to a ThemedWindow in code:

HeaderItems.Add(new HeaderItemControl() { Content = "HeaderItemControl" });
HeaderItems.Add(new SimpleButton() { Content = "SimpleButton" });
HeaderItems.Add(new TextEdit() { MinWidth = "200" });

The following code sample shows how to add the same header items to a ThemedWindow in XAML:

  <dx:HeaderItemControl Content="HeaderItemControl"/>
  <dx:SimpleButton Content="SimpleButton"/>
  <dxe:TextEdit NullText="Text Edit" MinWidth="200"/>

The image below illustrates the result:

ThemedWindow Header Items

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the HeaderItems property.


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.

See Also