Hi there!
Im working with property grid, and I need to put an image with property name.
I have achieved it, but I need give some margin betwen image and text.(See attached image)
I used that code:
Private
Sub
PropertyGridParams_ItemFormatting(sender
As
Object
, e
As
UI.PropertyGridItemFormattingEventArgs)
Handles
PropertyGridParams.ItemFormatting
e.VisualElement.Image =
New
Bitmap(ImagePath,
New
Size(18, 18))
e.VisualElement.ImageAlignment = ContentAlignment.MiddleRight
End
Sub
How can I set custom image without cover the text?
Thank you!