WPF ComboBox 默认选中无效
<p>在WPF开发当中,我发现ComboBox的默认选中逻辑失效了,过细查找后发现背景逻辑并没有出现题目。</p><p>测试后发如今XAML中,ComBoBox控件的SelectedValue属性需要写在ItemSource之前,默认选中又规复正常了。</p>
<ComboBox SelectedValue="{Binding TypeValue}" ItemsSource="{Binding CmbListItem}" SelectedItem="{Binding CmbSelectItem}" SelectedValuePath="TypeValue" DisplayMemberPath="Member"/>
页:
[1]