WPF中ComboBox控件在容许编辑时的数据绑定方法

在WPF中若ComboBox容许用户输入,其绑定的对象直接使用Text,而不是SelectedItem属性。XAML示例:web <ComboBox IsEditable="True" ItemsSource="{Binding YJCodeList}" Text="{Binding YJCode}"/>
相关文章
相关标签/搜索