Skip to main content
A newer version of this page is available. .

ThemedWindow.HeaderItemContainerStyle Property

Gets or sets the style applied to a header item’s container. This is a dependency property.

Namespace: DevExpress.Xpf.Core

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

NuGet Packages: DevExpress.WindowsDesktop.Wpf.Core, DevExpress.Wpf.Core

Declaration

public Style HeaderItemContainerStyle { get; set; }

Property Value

Type Description
Style

A Style object that contains style settings.

Remarks

The following code sample shows how to add ThemedWindow Header Items and change its’ style:

  <dx:ThemedWindow
      ...
      xmlns:dx="http://schemas.devexpress.com/winfx/2008/xaml/core"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
  <dx:ThemedWindow.HeaderItemsSource>
      <dx:ThemedWindowHeaderItemsCollection>
          <system:String>First</system:String>
          <system:String>Second</system:String>
          <system:String>Third</system:String>
      </dx:ThemedWindowHeaderItemsCollection>
  </dx:ThemedWindow.HeaderItemsSource>

  <dx:ThemedWindow.HeaderItemContainerStyle>
      <Style TargetType="{x:Type FrameworkElement}">
          <Setter Property="MinWidth" Value="100"/>
      </Style>
  </dx:ThemedWindow.HeaderItemContainerStyle>
</dx:ThemedWindow>

The image below illustrates the result:

ThemedWindow HeaderItems ContainerStyle

See Also