Convention to bind wrapped Model

Topics: Conventions
Jun 19, 2012 at 8:13 AM

I understand from this link

that the convention used by CM to recognize a model accessible via a property of a ViewModel is to use an underscore between the name of the property accessor of the model and a property of the wrapped model.

For example: Model property of a ViewModel = "Customer", Model property of Customer = "Name". Using Customer_Name as the Name of a TextBlock in the View will result in a convention-based binding of Customer.Name to the TextBlock.

Unfortunately, I have not been successful in producing a simple test project to achieve this convention.

What is the proper way to bind a model exposed by ViewModel using a property accessor?

Thank you.