A personal repository of technical notes. - CSC

Expose Custom Control Sub-Property to Intellisense

// Exposes subproperties to intellisense

using System.ComponentModel;

[DesignerSerializationVisibility(DesignerSerializationVisibility.Content)]
public Literal MyLiteral
{
get { return myLiteral; }
set { myLiteral = value; }
}

// So that the following will show up in intellisense of control in front end:
MyLiteral-Text=""

No comments:

Post a Comment