stigzler
stigzler

Reputation: 993

PropertyGrid drawing anomalies in .net Framework 3.5 version

Firstly, I have to use .net framework 3.5. I think the newer versions may be better. I am trying to implement a dark theme for this control. On some of the automatic drop downs (e.g. when the property is boolean or an enum), the drop downs look shockingly bad:

enter image description here

TextRenderingHint in this instance is a Framework enum. You'll notice all of the white lines (the drop-down extends over the "Alignment" category header). Buttons are also rendered automatically with a 3D border and I need it to be flatstyle rather than standard (which renders the 3D border):

enter image description here

I know I can do custom UITypeEditors - but would rather avoid the hassle, because I've got a lot of properties + property types + the system UITypeEditors are helpful.

Is there any way to override aspects of the drawing of the items of the property gird (like you can with toolstrips etc)?

Upvotes: 0

Views: 24

Answers (0)

Related Questions