在集合编辑器中更改参数时使控件失效



我们正在寻找一种更优雅的方式来更新控件内容,同时在集合编辑器中编辑其属性。

据我们所知,唯一的解决方案如下:http://dotnetfacts.blogspot.com/2008/05/how-to-take-control-over-collection.html

因此声明一个静态事件处理程序:

public static event MyPropertyValueChangedEventHandler MyPropertyValueChanged

此解决方案有许多缺点(考虑拥有多个控件),我们想知道是否可以使用不同的方法。

谢谢。

这是迄今为止找到的最有用的链接: http://engineeringdotnet.blogspot.com/2010/08/modifying-c-collectioneditor-for-real.html

最新更新