I would like to bind the Selected Item Content of combobox to a string Property in WPF.
<ComboBox
Height="23"
HorizontalAlignment="Right"
Margin="0,408,359,0"
Name="myComboBox"
VerticalAlignment="Top"
Width
="120"
DataContext="{Binding
Car}"
SelectedValue="{Binding
Path=CarModel,
Mode=TwoWay,ValidatesOnDataErrors
=True}">
<ComboBoxItem
Content="Old" />
<ComboBoxItem
Content="new" />
<ComboBoxItem
Content="veryold" />
</ComboBox>
From above code i could see the carmodel as
System.Windows.Controls.ComboBoxItem: Old
But i want "Old" Only.
Thanks in Advance
Ravi