I would like to add custom property that offers a list of choices.
It is possible to use Enum type. The property will be then rendered as a combobox.
public enum Group
{
GroupA,
GroupB,
GroupC
}
[WebBrowsable(true),
Category("Miscellaneous"),
Personalizable(PersonalizationScope.Shared),
WebDisplayName("Group name")]
public Group SelectedGroup
{
get { return _group; }
set { _group = value;}
}
It works fine - but I would like to use more complex group names like "John Doe's group". Is there any way to do that? I haven't found anything and I'd prefer not to create EditorPart and do all those things manually.