开发者

How can I get the property grid to re-query for the PropertyDescriptor on a sub object whenever a given property of the sub object is edited?

I wish to hide most property when the “Enabled” property is set to false on my object. I can do this with a custom TypeConverter (subclass of ExpandableObjectConverter) by overriding GetPropert开发者_开发知识库ies(). However I need to tell the property somehow to re-query for the property descriptors.


Put [RefreshProperties(RefreshProperties.All)] on the property you wishes value change to get the property grid to re-query.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜