First of all what I did (easier to explain what I want to get):
I've created a simple user control with a designer property of type List<bool>
.
[Browsable(true)]
[Description("Select some.")]
[Category("SelectionTest")]
public List<bool> BoolList = new List<bool>();
When dragging this control onto my form and inspecting the designer I get this:
This one will open an editor:
Goal:
I would like to add another property of type string
so it gets shown as the display-text on the left side. I dont care if it's editable.
So in general I would need something like List<string, bool>
which isn't possible, i know. Unfortunately Dictionary
and Tuple
arn't working. When opening the editor, it will be still a single value shown as Value: (string, bool)
.
Anyone got an idea how to get another property into the right window or change the descriptions of the bools?
Would really appreciate every help in here. I guess this would be very nice knowledge to have. Think about the possibilities...
Thanks!