[UWP]数据绑定或处理属性改变了事件,哪个更快? [英] [UWP]Data-binding or Handling property changed event, which is faster?
问题描述
如果我想更新Propery的值,听取另一个数据的值更改事件并使用该更改的值,我应该考虑哪种方式更快 - 数据绑定或属性更改事件处理?
Muzib
If I want to update the value of a Propery listening to the value change event of another data and using that changed value, which way should I consider faster - data binding or property change event handling?
Muzib
推荐答案
你好
请阅读置顶文章,特别是  发布指南:主题行
标签 &absp; Windows的已知问题10个SDK和工具 ,
,不要忘记为您的问题添加标记。
Please read the sticky posts, especially the Guide to posting: subject line tags and Known Issues for Windows 10 SDK and Tools , and don't forget add tag to your question.
差异很小蚂蚁的几个属性。但如果你有数百或更多的房产,那么它很重要因为 对于每个属性跟踪,在那里创建了单独的"绑定"。您需要额外内存的对象
并且每个属性都会更改,并附带其他方法调用。
Difference is insignificant for several properties. But if you have hundreds or more properties then it is significant because of for each property tracing there created separate "Binding" object for which you need additional memory and each property change accompanied by additional methods call.
这篇关于[UWP]数据绑定或处理属性改变了事件,哪个更快?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!