What is the easiest way to have Visual Studio-like editor for string in PropertyGrid? For example in Autos/Locals/Watches you can preview/edit string values in-line but you can also click on magnifying glass and see string in external window.
What is the easiest way to have Visual Studio-like editor for string in PropertyGrid?
Share
You can do this via a
UITypeEditor, as below. Here I’m using it on an individual property, but IIRC you can also subvert all strings (so that you don’t need to decorate all the properties):To apply this for all string members: instead of adding the
[Editor(...)], apply the following somewhere early in the app: