Author: mkamoski | Posted on: 2/27/2009 6:38:42 AM | Views : 340

All --

Please help.

I need to know how to create custom enumerated properites with IntelliSense in a User Control.

For example, I know that if I put this code the code-behind of the User Control itself...

 

private string _MyCustomStringProperty;

public string MyCustomStringProperty
{
 get
 {
  return (this._MyCustomStringProperty + "").Trim().ToLower();
 }

 set
 {
  this._MyCustomStringProperty = (value + "").Trim().ToLower();
 }
}
 

...then when one uses an instance of that control on a page one will get IntelliSense such that the declarative tag in the code-infront will "know" about MyCustomStringProperty and it will provide IntelliSense to let the developer know the custom property exists, at design-time, in ...

Go to the complete details ...