Wpf AutoCompobox DisplayMemberPath调用转换器或设置多重绑定
在ComboBox ItemSource List类中设置一个属性,该属性是类的对象,当我选择EdItem时,我必须在其中设置一个属性以用于显示Wpf AutoCompobox DisplayMemberPath调用转换器或设置多重绑定,wpf,xaml,combobox,Wpf,Xaml,Combobox,在ComboBox ItemSource List类中设置一个属性,该属性是类的对象,当我选择EdItem时,我必须在其中设置一个属性以用于显示 <AutoComboBox x:Name="cbPatient" Grid.Row="1" Grid.Column="3" ItemsSource="{Binding Path=Patients}" SelectedItem="{Binding SelectedPatient}">
<AutoComboBox x:Name="cbPatient" Grid.Row="1" Grid.Column="3" ItemsSource="{Binding Path=Patients}"
SelectedItem="{Binding SelectedPatient}">
<AutoComboBox.ItemTemplate>
<DataTemplate>
<TextBlock Text="{Binding Name,Converter={StaticResource NameToFullNameConverter}}"/>
</DataTemplate>
</control:AutoComboBox.ItemTemplate>
<control:AutoComboBox.DropDownView>
<GridView>
<GridViewColumn Header="Type" DisplayMemberBinding="{Binding Path=Name,Converter={StaticResource NameToFullNameConverter}}"/>
</GridView>
</control:AutoComboBox.DropDownView>
</control:AutoComboBox>
此转换器在DropDownView中工作,但在我从DropDownView中选择项目时不工作
提前谢谢