Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
320
Using XamDatagrid while binding MVVM collection of view models
posted

I am following an MVVM pattern where my view model exposes a rich model.  The model in this case is an observable collection of child view models.  Each child view model has a model property, and the model exposed in this case is a rich class that has the properties I wish to bind to fields.

The problem I am running in to is that there is no way (as far as I can determine) to tell the grid that each row is bound to a view model, and that the field path should be "Model.PropertyName", not simply "PropertyName".

1) Is there a work around (other than duplicating all my properties in my view model)?

2) If not can this please be entered as a bug/feature request.  Since the MVVM pattern is now well established, it seems as if the grid should support this scenario.

Thanks