4

我正在将 errorprovider 扩展到 propertygrid 和 treeview 控件。我在以下位置找到了一个非常有用的帖子:Example detailing how to add the errorprovider to a propertygrid,而且效果很好。我的问题是作者怎么知道 IPropertyValueUIService 是 propertygrid 用来显示图标和工具提示的接口。我已经使用 Reflector 拆解了 propertygrid 和 IPropertyValueUIService,我没有看到任何关系。

这是为了我自己作为程序员的启迪,以及尝试将错误提供程序扩展到树视图。

在此先感谢, dhysong

4

1 回答 1

3

我猜部分来自文档

或来自反射器;找到 IPropertyValueUIService,按Ctrl+r并展开“Used By”,您可以看到它是如何使用的PropertyGridInternal.PropertyDescriptorGridEntry

于 2009-07-21T19:40:51.273 回答