Flag control properties as required in design view
问题 I'd like to force the consumer of a control to give a property a value when placing the control on a page. In VisualStudio when you create an < img > tag without attributes SRC or ALT on a user control, it gets underlined saying that SRC and ALT are required attributes. I assume this is just a special handling of the tag by the editor, but is there a way to define a similar behavior for controls? If the control had a property defined like this: public object AProperty { get { if (ViewState[