If and only if the binding is done in Two Way mode then the target is able to update the source value (the Text Block is able to update the View Model).
This synchronisation is done immediately : each change of the target value, even a tiny tiny one update the source.
Please check my last scenario in the following list to get a brief idea about the properties.
Here I will use three types of bindings to combobox from the VM. Binding string collection to Combobox – First case we will take is of binding string collection to combobox.
This is more precise and understandable to me to say that a ‘Delay’ property has been added to the Binding markup extension !
This post is a part of the serie on WPF 4.5 new features.
This selector I can use to achieve any functionality which I would have achieved in Selection Changed event. Binding to collection of User Defined Type – In this case I want to bind a collection of some user defined type which in my case is Place class.
I have created a property of type IList But if I simply bind my collection of Place class from VM to view the output would be something as shown below Which shown that the combobox simply calls the To String() method of the class while binding.
I have defined a Standards property of type Ilist Since we are using the MVVM approach here in this article, that is why we cannot have Selection Changed event for my combobox which prevents me to achieve MVVM design.
That is why I have Selected Item property defined, the setter of Selected Standard is invoked when I change the selection.
Selected Item, Selected Value and Display Member Path. Selected Item – Selected Item helps to bind the actual value from the Data Source which will be displayed.