I looked over this web and google and the solutions didn\'t work for me.
I have a command on the ViewModel of a UserControl. Well, The usercontrol have a ItemsContro
Ok, then what about modifying your data item class so that it has a property referencing to the whole model view?
If your ItemsSource is of type ObservableCollection then modify DataItem type like this:
public class DataItem
{
public BusinessObject Value { get; set; }
private ModelView modelView;
public ModelView ModelView
{
get
{
return modelView;
}
}
public DataItem(ModelView modelView)
{
this.modelView = modelView;
}
}