Following the DDD pattern we have views on WPF master/detail type.
In Master area our controls bind against the public properties of our view/model class.
I details area, we use a DataGrid which that manage an ObservableCollection property of our view/model class.
Then, the DataGrid is restricted the DataContext only to the columns of collection.
We try to add a column to hold a DataGridComboBox that as a result of the selection of elements give us an ID (with another table or entity external) for store in that collection. However having been delimited the DataGrid to unique data context of the
Observable collection and we cannot assemble said combo.
You may be our ignorance about possibilities and issues of WPF, but the only found alternative (and that can severely impact on our architecture) is as follows:
Add a resources section to our views that contain our view/model, class instance instead of the DataContext section.
View Complete Post