I have an object hierarchy and for some of the classes I want to hide some properties for the propertygrid.
In the baseclass FieldProperty I have IsReadOnly, IsReadOnly is OK for a textbox but not for a label.
Let's sum it up
Label:
Don't show IsReadOnly
TextBox:
Show IsReadOnly
I use the intersection mode for displaying objects with common properties so I need AutoGeneratePropertyDefinitions="True" and I also need to create custom editors.
There are many more exceptions like this for all the other input types. I can't changes the object structure because the datalayer is already coded and there is not time to fix it.
Can someone help me?
In the baseclass FieldProperty I have IsReadOnly, IsReadOnly is OK for a textbox but not for a label.
Let's sum it up
Label:
Don't show IsReadOnly
TextBox:
Show IsReadOnly
I use the intersection mode for displaying objects with common properties so I need AutoGeneratePropertyDefinitions="True" and I also need to create custom editors.
There are many more exceptions like this for all the other input types. I can't changes the object structure because the datalayer is already coded and there is not time to fix it.
Can someone help me?