I know that this works for single properties by Scott Guthrie's blog to automatically use the magic image for the partial model passed to it (UI Helper, as in dynamic data):
[UIHint("StateDropDown")] public string State { get; set;}
But how do you comment the entire class to use the helper UI as follows:
[UIHint("Address")] public class Address { public string addr1 { get; set; } public string addr2 { get; set; } public string city { get; set; } [UIHint("StateDropDown")] public string state { get; set; } public string zip { get; set; } }
(Except [UIHint ("Address")], it does not seem to work in class. In his examples, he has "Customer.aspx" in the Shared-> EditorTemplates folder, so I assume this is possible.
source share