C# 组合框上的IsEditable无效
我想使我的C# 组合框上的IsEditable无效,c#,wpf,combobox,C#,Wpf,Combobox,我想使我的组合框可编辑。我的组合框显示一个国家列表,我希望我的用户能够键入国家以搜索它。然而,在其当前状态下,它不会这样做。我做错了什么 <ComboBox x:Name="CmbCountryList" Width="150" IsEditable="True" IsTextSearchEnabled="True" IsTextSearchCaseSensitive="False" StaysOpenOnEdit="True" TextSearch.TextP
组合框
可编辑。我的组合框
显示一个国家列表,我希望我的用户能够键入国家以搜索它。然而,在其当前状态下,它不会这样做。我做错了什么
<ComboBox x:Name="CmbCountryList" Width="150"
IsEditable="True" IsTextSearchEnabled="True"
IsTextSearchCaseSensitive="False" StaysOpenOnEdit="True"
TextSearch.TextPath="CountryName"
ItemsSource="{Binding CountryMasterList, Mode=TwoWay}"
DisplayMemberPath="CountryName"
SelectedValuePath="CountryID"
SelectedItem="{Binding Path=CountryObj, Mode=TwoWay, ValidatesOnDataErrors=True}"
Text="{Binding Path=CountryName, Mode=TwoWay}"
IsSynchronizedWithCurrentItem="False" />
查看如何实现此功能的示例。您是否希望它像自动完成框一样工作?在组合框中进行编辑的目的是,除了从可用项目中进行选择外,还允许输入列表中尚未出现的文本框类值(因此是组合框)。是的,我希望输入自动完成框类值。