简体   繁体   English

是否存在可以引发事件的PropertyGrid属性?

[英]Is there a PropertyGrid attribute that can raise an event?

In C#, when using a class for a PropertyGrid, am I correct in saying that there is an attribute that can be used to raise an event when a property is changed? 在C#中,将类用于PropertyGrid时,我是否正确地说是有一个属性可以在属性更改时引发事件?

I cannot seem to find this. 我似乎找不到。 Can someone please help me out? 有人可以帮我吗?

EDIT 编辑

I am looking for the attribute, similar to the Browsable attribute, where I can add an event name, and this event is raised when the property is changed. 我正在寻找类似于Browsable属性的属性,可以在其中添加事件名称,并在更改属性时引发此事件。 This is for collections mainly, but also for all other properties. 这主要用于集合,但也用于所有其他属性。

Thanks. 谢谢。

How about the PropertyGrid.PropertyValueChanged-Event ? 怎么样PropertyGrid.PropertyValueChanged-Event Or are you looking for something different? 还是您在寻找不同的东西?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM