How can I change the UITypeEditor of a PropertyGrid element?

85 views Asked by At

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?

0

There are 0 answers