Expose Attribute

Topics: Questions
Feb 11, 2013 at 10:02 AM
The Attribute Expose is only for the view (xaml)? It is not possible to map a propery from a model with the Expose Attribute so I can use it in the viewmodel without call it with model.Property.

Is that correct?
Feb 12, 2013 at 10:03 AM
The Expose attribute is indeed a view model feature. All models decorated with the attribute (n the VM) will expose the properties to the view). If you want to write code against them, use the ViewModelToModel attribute.