1
我的组合框组合框获得价值则selectedItem:如何使用绑定
<pmControls:pmComboBox Grid.Row="3" Grid.Column="1" Margin="3"
SelectedItem="{Binding Applicable_For,Mode=Two Way}" DisplayMemberPath="Applicable_For"
SelectedValuePath="Applicable_For">
<pmControls:pmComboBoxItem Content="Parcel" ></pmControls:pmComboBoxItem>
<pmControls:pmComboBoxItem Content="Property"></pmControls:pmComboBoxItem>
</pmControls:pmComboBox>
增加了2个静态项目组合框的包裹和财产,想用结合对这些值 。
我给了SelectedItem绑定,我的绑定字段是Applicable_For。
使用上面的代码将适用_For中的值设置为null。
编辑:我已经添加Mode=Two Way
选定的项目,我忘了以前。
但不是获得价值像命名空间“PropMgmt.Controls.pmComboBoxItem”
请帮助..
It Works thanks – Gayatri