Jo

I have the following code in my .xaml file

<ComboBox HorizontalAlignment="Left" Margin="3,3,0,0" x:Name="cmbTestList" IsTextSearchEnabled="True" VerticalAlignment="Top"

Width="170" Height="Auto"

SelectedIndex="-1"

ItemsSource="{Binding Source={StaticResource ItemList}}"

ItemTemplate="{StaticResource ItemDetailTemplate}"/>

<ObjectDataProvider x:Key="ItemList" ObjectType="{x:Type src:LookupItemCollection}"/>

<DataTemplate x:Key="ItemDetailTemplate">

<TextBlock Text="{Binding Path=Name}"/>

</DataTemplate>

ComboBox works fine, the only problem is that I have to open the comboBox to select an item, my combo box has ton of items in it so it would be really convinient if the box jumped to the item when a letter is typed.

I would really appreciate any help I can get.

Thanks in advance.....



Re: Windows Presentation Foundation (WPF) Trouble making the combo auto select item by typing the first charecter- any help appreciated

lee d

you have to set the TextSearch.TextPath property






Re: Windows Presentation Foundation (WPF) Trouble making the combo auto select item by typing the first charecter- any help appreciated

Jo

Thank You sooo much. I have been looking for this for over a month but couldn't come up with anything.

Your help is greatly appreciated.