I´ve got a problem with a Combobox in a ListView. I´ve got a class called "Substrate". This class contains an object of a class called "SubstrateType". I want to show the objects of the class "Substrate" in a Listview. Each property of the "Substrate" is presented in the columns of the Listview. For the different "SubstrateType" I want to use a combobox.
在XAML中,我试图这样做:
<ComboBox Name="CBType"
ItemsSource="{Binding ElementName=SettingsSubstrate, Path=TypeList}"
SelectedItem="{Binding Path=Substrate.SubstrateType}"
DisplayMemberPath="Description"/>
在密码后面,我有两个可观察的座谈会。 其中一个用于所有补贴,一个用于所有可能的补贴。 如你点击, com箱显示所有底栖。 但是,如果你打算选择一个子, com箱就没有选定项目。
http://i44.tinypic.com/2eakxav.png
提前感谢。