When applying the attribute [Browsable(false)] to a property, the PropertyGrid of wpftookit does not list this property any more (which is my goal).
However, the Visual Studio tool "Live Property Editor" also stops displaying this property. This is not my goal and decreases debugging capabilities.
I could of course work with compiler conditions like:
#if DEBUG
[Browsable(false)]
#endif DEBUG
But this makes the property reappear in the PropertyGrid while working with a debug build (which I mostly do during development).
Is there a way of keeping the property visible in "Live Property Editor" but removing it from PropertyGrid?
You could do this at runtime using TypeDescriptors and TypeConvertors by working out whether you are in Visual Studio or running as your program.
There is another stack overflow answer: C# PropertyGrid => How to change visible Properties at Runtime which can give some pointers.