ComboBox with Objects
You can use ComboBoxes to select arbitrary Javascript objects from arrays:
- Set the itemsSource property to the object array,
- Set the displayMemberPath property to the name of the property that should be displayed in the Combo,
- Optionally set the selectedValuePath property to the name of the property that should be used to calculate the combo's selectedValue property,
- Use the combo's selectedIndex, selectedValue, or text to retrieve the current selection.
The current text is: China.
The selectedIndex is: 0.
The selectedValue is: $72,624.33.