It is possible to do something like XE2 LiveBindings in D2010?

不羁的心 提交于 2019-12-09 13:30:29

问题


It's factible or it uses some compiler technology only available in XE2 ?

I just want to bind (bidirectional) a TEdit.Text property to a object function that returns a string in code (I don't need designer components or expression evaluators)..

Thanks!


回答1:


I guess you could try Delphi sorcery library. It has quite powerful data binding solution which should work in all the modern Delphi versions.




回答2:


No, as far as I can tell, the LiveBindings system was implemented entirely in code with no new language features introduced to support it. Which is a bit of a shame, IMO; it could be a much simpler and overall better system if the language had support for something like property references.



来源:https://stackoverflow.com/questions/7882599/it-is-possible-to-do-something-like-xe2-livebindings-in-d2010

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!