Home > Net > Ask: what about the PropertyGrid control use, add custom properties.
Ask: what about the PropertyGrid control use, add custom properties.
Time:11-06
Add a custom attributes for the system control, and retain control original properties,
In WinForm custom controls, select a system such as pictureBox, binding propertyGrid will display the corresponding attributes, I want to add an attribute, such as in the propertyGrid add a "author" custom attributes,
According to my understanding, now should be to create a new class based on PictureBox class, add the "author" in the new class attribute, I don't want to influence the system controls the original attributes, Just want to add a property, so this method should be very troublesome, is there any other simple way
The original control of the system, not custom controls.
thank you
CodePudding user response:
River's lake slang "tray set of controls"
Is Microsoft on the edge of the block, not on the UI, placed in the bottom "stripes", such as DataBindingSource ErrorProdvider is this category, they will achieve IExtenderProvider interface
So we who is baidu once IExtenderProvider can get information https://www.cnblogs.com/ahdung/p/4169724.html
Ps: WPF's reliance on property, the solution is the same thing