wpf - Winforms property grid high dpi ui overlap -


i've got winforms property grid hosted inside windowsformshost. works wonderfully until change dpi settings in windows, or use monitor high dpi.

when that, property names start overlap, seems arranges ui, , re-sizes font accommodate high dpi. strange. looks like:

enter image description here

(note how value labels aren't "blown up" name labels?) have tried can think of that's related dpi. setting autoscalemode on propertygrid, removing property mappings host, setting usecompatibletextrendering etc...

i've been browsing through .net source , there doesn't seem way set different font names vs values.

i have tried reproduce in empty wpf application, have been unable so. have ideas? i've exhausted of resources , google skills no avail.

thanks

simon

edit: incase it's relevant, set "change size of items" under control panel -> display "large - 150%". using windows 8 have seen issue on other platforms well.

i got exact same problem - turns out best way me turn off dpi awareness in application. , best way assemblyinfo

[assembly: disabledpiawareness] 

Comments

Popular posts from this blog

basic authentication with http post params android -

vb.net - Virtual Keyboard commands -

css - Firefox for ubuntu renders wrong colors -