Back to Devexpress

ThemedWindow.SearchItemTemplate Property

wpf-devexpress-dot-xpf-dot-core-dot-themedwindow-e431880b.md

latest1.6 KB
Original Source

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.v25.2.dll

NuGet Package : DevExpress.Wpf.Core

Declaration

csharp
public DataTemplate SearchItemTemplate { get; set; }
vb
Public Property SearchItemTemplate As DataTemplate

Property Value

TypeDescription
DataTemplate

A data template.

|

Remarks

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

xaml
<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

ThemedWindow Class

ThemedWindow Members

DevExpress.Xpf.Core Namespace