can one throw an exception if a View element has no binding

Jan 27, 2012 at 5:04 PM
Edited Jan 30, 2012 at 6:20 PM


In case of an application where a developer by mistake renames the "save" method in viewmodel to e.g. "savecustomer", but foregets to update the view.

Now of course when the SaveButton Cick Event  has no more binding and this could become an issue-  is there a way to throw an exception  or somehow make this noticable to the developer before he/she releases the software.




Jan 30, 2012 at 11:45 PM

You can plug into the logging infrastructure and CM will output whenever a convention is matched/not-matched.

Feb 2, 2012 at 1:00 PM

Hi thank you, will take a look at this over the next few days