HandyControl icon indicating copy to clipboard operation
HandyControl copied to clipboard

关于给PropertyGrid控件搞一个PropertyValueChanged事件

Open Yslelf opened this issue 5 years ago • 3 comments

就是给PropertyGrid控件搞一个PropertyValueChanged事件,就是在PropertyGrid控件绑定的实体类对象里属性的值更改时触发这个事件,相关例子就是Winform的PropertyGrid就有这个PropertyValueChanged事件,希望作者能加下这个事件

Yslelf avatar Aug 13 '20 14:08 Yslelf

@Yslelf There is a SelectedObjectChangedEvent event Is this what you are looking for? https://github.com/HandyOrg/HandyControl/blob/35eb87104088f8489d543288504b2cf087bce01d/src/Shared/HandyControl_Shared/Controls/PropertyGrid/PropertyGrid.cs#L38

ghost1372 avatar Aug 14 '20 06:08 ghost1372

@Yslelf There is a SelectedObjectChangedEvent event Is this what you are looking for? https://github.com/HandyOrg/HandyControl/blob/35eb87104088f8489d543288504b2cf087bce01d/src/Shared/HandyControl_Shared/Controls/PropertyGrid/PropertyGrid.cs#L38

不是,你说的事件是PropertyGrid控件绑定的实体类对象更改时触发,而我说的是PropertyGrid控件绑定的实体类对象里的属性更改触发。你可以看一下winform的PropertyGrid控件就有SelectedObjectsChanged事件和PropertyValueChanged事件

Yslelf avatar Aug 14 '20 08:08 Yslelf

me tool,help!

YNBTools avatar Oct 29 '25 13:10 YNBTools