在集合编辑器中更改参数时使控件无效
我们正在寻找一种更优雅的方式来更新控件内容,同时在集合编辑器中编辑其属性。
据我们所知,唯一的解决方案如下: http://dotnetfacts.blogspot.com/2008/05/how-to-take-control-over-collection.html
因此声明一个静态事件处理程序:
public static event MyPropertyValueChangedEventHandler MyPropertyValueChanged
这个解决方案有很多缺点(考虑一下有多个控件),我们想知道是否可以采用不同的方法。
谢谢。
We are looking for a more elegant way to update control contents while editing it's properties in a collection editor.
As far as we know the only solution is the following: http://dotnetfacts.blogspot.com/2008/05/how-to-take-control-over-collection.html
And therefore declaring a static event handler:
public static event MyPropertyValueChangedEventHandler MyPropertyValueChanged
This solution has a number of drawbacks (think about having more than one control) and we were wondering if a different approach is possible.
Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这是迄今为止找到的最有用的链接: http:// /engineeringdotnet.blogspot.com/2010/08/modifying-c-collectioneditor-for-real.html
Here is the most useful link found so far: http://engineeringdotnet.blogspot.com/2010/08/modifying-c-collectioneditor-for-real.html