PDA

View Full Version : VERY SIMPLE ViewModel inheritance



jksuf
13 Feb 2015, 1:35 AM
Hi guys,

I have a view hierarchy like this:

ParentView
ParentViewModel
---- ChildView (contained in ParentView)

My ChildView has many items, which are the "grandsons" of the parent view. Is it possible to bind a data or store from the ParentViewModel to the "grandsons" of the ParentView.
I know that ChildView will inherit the ParentViewModel by default, as it's a direct item of ParentView, but will it be the same for the ChildView children ^^ ?

Thanks in advance :) !

mitchellsimoens
17 Feb 2015, 2:11 PM
ChildView should have access to the data from the ParentViewModel.