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