Back to Devexpress

ThemedWindow.ToolbarItemContainerStyle Property

wpf-devexpress-dot-xpf-dot-core-dot-themedwindow-32b8ba58.md

latest2.0 KB
Original Source

ThemedWindow.ToolbarItemContainerStyle Property

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

Namespace : DevExpress.Xpf.Core

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

NuGet Package : DevExpress.Wpf.Core

Declaration

csharp
public Style ToolbarItemContainerStyle { get; set; }
vb
Public Property ToolbarItemContainerStyle As Style

Property Value

TypeDescription
Style

A Style object that contains style settings.

|

Remarks

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

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

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

The image below illustrates the result:

See Also

ThemedWindow Class

ThemedWindow Members

DevExpress.Xpf.Core Namespace