<ComboBox Height="23" Margin="52,64,33,0" Name="comboBox1"
IsSynchronizedWithCurrentItem="True"
IsEditable="True"
DisplayMemberPath="Value"
SelectedItem="{Binding Path=Number, Mode=TwoWay}"
/>
public class Number : INotifyPropertyChanged
{
private string value;
public string Value
{
get
{
return value;
}
set
{
this.value = value;
this.PropertyChanged(this, new PropertyChangedEventArgs("Value"));
}
}
#region INotifyPropertyChanged Members
public event PropertyChangedEventHandler PropertyChanged = delegate { };
#endregion
}
comboBox1.ItemsSource = new Number[] { new Number() { Value = "One" },
new Number() { Value = "Two" },
new Number() { Value = "Three" }};
My binded data set is not modifying when i am editing combobox text. ie., target to source binding is not happening.
Thanks in advance