Skip to main content
All docs
V24.2

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

ThemedWindow.SearchItemTemplate Property

Gets or sets a template for the search item box. This is a dependency property.

Namespace: DevExpress.Xpf.Core

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

NuGet Package: DevExpress.Wpf.Core

#Declaration

public DataTemplate SearchItemTemplate { get; set; }

#Property Value

Type Description
DataTemplate

A data template.

#Remarks

The following example implements a custom template for the ThemedWindow’s search item:

<dx:ThemedWindow ...
      xmlns:native="http://schemas.devexpress.com/winfx/2008/xaml/bars/internal">
    <dx:ThemedWindow.SearchItemTemplate>
        <DataTemplate>
            <Border CornerRadius="10" BorderThickness="1" Padding="5" BorderBrush="Red" >
                <native:BarItemSearchControl ToolTip="Search button in ribbon" />
            </Border>
        </DataTemplate>
    </dx:ThemedWindow.SearchItemTemplate>
</dx:ThemedWindow>
See Also