what I understand from this term "TwoWay" is that if any value at one end changes , it should directly get reflected to the other end, for example I have this ComboBox
<ComboBox SelectedValue="{Binding CarModel,Mode=TwoWay,IsAsync=True}" ItemsSource="{Binding carModelNames}" />
now I wanted the SelectedValue to be nothing/null, I just updated my CarModel property in the code/viewModel to be "", but that didn't work, am I missing something here ??
here is my property
public String CarModel
{
get
{
return _CarModel;
}
set
{
if (_CarModel != value)
{
_CarModel = value;
OnPropertyChanged("CarModel");
}
}
}
thanks