专门针对 DataBinding
和 Templates
,有没有一种好方法可以测试我的控件在这些方面的性能。
我想知道多少时间应用模板和 初始化数据绑定(bind)需要。
我正在使用 Wpf Performance Suite 和 ANTS Profiler,但似乎都没有提供有关这些方面的信息。
有任何想法吗?
最佳答案
没有一个分析工具(我遇到过)具有这种能力。关于绑定(bind),我发现这篇文章/文章很有用 -
Detecting Bindings that should be OneTime: http://code.logos.com/blog/2008/10/detecting_bindings_that_should_be_onetime.html
Optimizing Performance: Data Binding: http://msdn.microsoft.com/en-us/library/bb613546.aspx
关于.net - 测试 Wpf Control 实例化性能,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3305733/