我想让我的 ComboBox
可编辑。我的 Combobox
显示了一个国家列表,我希望我的用户能够输入国家来搜索它。但是,在当前状态下,它不会这样做。我做错了什么?
<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" />
最佳答案
检查 http://weblogs.asp.net/okloeten/archive/2007/11/12/5088649.aspx有关如何实现此功能的示例。
关于c# - 组合框上的 IsEditable 没有效果,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16793616/