I made myself an UITypeEditor which draws me the selected colors on the PropertyGrid. It looks like this:
PropertyGrid after UITypeEditor
The PaintValue event was overwritten in the editor which draws me the rectangle with those colors:
Rectangle destRect = e.Bounds;
LinearGradientBrush linGrBrush = Wire_Colors.GetWireLinearGradientBrush(Wire_Colors.GetWireColor(e.Value.ToString()), destRect);
e.Graphics.FillRectangle(linGrBrush, destRect);
To my Question:
Is there a way to edit the UITypeEditor of the elements on the left side of the PropertyGrid?