Table of Contents
Clear Button

EO.Wpf ComboBox can display a "Clear" button immediately prior to the drop down button. Clicking the "Clear" button clears the combobox. The following screenshot demonstrates this feature:

You can use ClearButtonTemplate to customize this appearance of the clear button. The following code demonstrates how to use this feature:

XAML
<Window x:Class="Test.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:eo="http://schemas.essentialobjects.com/wpf/"
        Title="MainWindow" Height="250" Width="350">
    <StackPanel Margin="10">
        <eo:ComboBox Width="200" HorizontalAlignment="Left" ShowClearButton="True">
            <eo:ComboBox.ClearButtonTemplate>
                <DataTemplate>
                    <eo:Bitmap Source="pack://application:,,,/Images/trashcan.png"></eo:Bitmap>
                </DataTemplate>
            </eo:ComboBox.ClearButtonTemplate>
            <eo:ComboBoxItem>Item 1</eo:ComboBoxItem>
            <eo:ComboBoxItem>Item 2</eo:ComboBoxItem>
            <eo:ComboBoxItem>Item 3</eo:ComboBoxItem>
            <eo:ComboBoxItem>Item 4</eo:ComboBoxItem>
            <eo:ComboBoxItem>Item 5</eo:ComboBoxItem>
        </eo:ComboBox>
    </StackPanel>
</Window>

The above code produces the following result: