I have model called Car with prperties name,model,type,year.
I have implemeted the Viewmodel with same properties with OnpropertyChangedEvent including model object type Property.
I have a view usercontrol where textboxes for name, model and for year a combobox.
Whenever i fill the view i want to save those details into model via view model
I have written ICommand Save which calls SaveCarDetails defined in viewmodel, which is bind to a button in view ,All other texboxes text is bind to the properties of viewmodel properties.
When i put break point at ICommand SaveCommand and SaveCarDetails Function i could see the values filled from view.
But when i bind these details to another user control where listbox is placed and its itemsource property is set to Car property nothing but model object defined in the viewmodel.
I couldn't see the values binding via viewmodel to model.
Where as if i bind to textboxes in the listview i could see the values because i it's a dependency property.
Can any one please tell me what is the wrong i am doing here.
View Complete Post