<UserControl x:Class="ExcelVSTOProject.UserControl1"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:local="clr-namespace:ExcelVSTOProject"
             mc:Ignorable="d" 
			 xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
             d:DesignHeight="450" d:DesignWidth="800">
    <Grid>
		<!--TextBoxStyle="{StaticResource AutoCompleteCustomTextBoxStyle}"-->
		<telerik:RadAutoCompleteBox 
                    x:Name="SearchAutoCompleteBox"
                    MinHeight="28"
                    VerticalAlignment="Center"
                    Width="400"
                    Margin="5"
                    WatermarkContent="Search templates"
                    ItemsSource="{Binding AllTemplates}" 
                    TextSearchPath="Name"
                    DisplayMemberPath="Name"
                    NoResultsContent="No Matches"
                    TextSearchMode="Contains"
                    AutoCompleteMode="Suggest"
                    SelectionMode="Single"
                    SelectionChanged="SearchAutoCompleteBox_OnSelectionChanged">
			<telerik:RadAutoCompleteBox.DropDownItemTemplate>
				<DataTemplate>
					<telerik:RadHighlightTextBlock Text="{Binding Name}"
                                                           Width="241"
                                                           HorizontalAlignment="Left"
                                                           HighlightMode="AllMatches"
                                                           HighlightBackground="#0099CC"
                                                           HighlightForeground="White"
                                                           IsCaseSensitive="False"
                                                           TextWrapping="Wrap"
                                                           HighlightText="{Binding RelativeSource={RelativeSource AncestorType=telerik:RadAutoCompleteBox}, Path=SearchText}"/>
				</DataTemplate>
			</telerik:RadAutoCompleteBox.DropDownItemTemplate>
		</telerik:RadAutoCompleteBox>
	</Grid>
</UserControl>
