I am trying to build a generic user control that will serve as a quick list maintenance screen.
I have a base ViewModel that has two string properties IDColumnName and DisplayColumnName and then a collection of objects to be edited. Inherited view models will be created for each object type that needs to be maintained. The usercontrols
datacontext is set to the viewmodel.
What I want to do is have the datagrid, who's itemssource is bound to the collection of objects in the viewmodel, have one column and have that one column bound to the property specified in the DisplayColumnName property of the viewmodel,
and I'd like to do it all in XAML. I've got the datagrids rowdetailstemplate being dynamically determined based on the object type but am struggling with dynamically setting which property the one column displays.
View Complete Post