Which is faster to use binding using converter or update in a property changed callback?

こ雲淡風輕ζ 提交于 2019-12-25 03:28:30

问题


I need fast updates, so I was wondering which one is faster and more efficient.


回答1:


I performed some measurements, and can proclaim, that using a converter in a binding is cheaper than not using it. We're talking about 9% time saving. Probably, finding / creating a default converter takes more time than taking an instance of a converter from a resource...



来源:https://stackoverflow.com/questions/8872600/which-is-faster-to-use-binding-using-converter-or-update-in-a-property-changed-c

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