I have my business classes decorated with the MetadataType attribute (Microsoft.Practices.EnterpriseLibrary.Validation.DataAnnotations) so that I can specify data annotations in separate classes. This works well, and I am able to validate and display
error messages in my Silverlight client.
Now I wanted to take this further, and decorated the properties with annotations like [Display(Name=…, Description=…)]. I want this information to be used in <sdk:Label/> and the <sdk:DescriptionViewer/>. Is this possible with the
p&p implementation of MetadataType?
I did not get this to work. I have provided a sample here http://sdrv.ms/MT9OqF showing that the “First name:” label is not displaying as expected.
Thank you / Michael