本文介绍了Silverlight XAML StaticResource性能的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 你好, 以下定义之间存在显着的差异(特别是考虑到大型应用程序的性能) ? Segoe在字典中定义:is there a notable difference (especially considering the performance in large applications) between the following definitions? Segoe is defined in a Dictionary of course: <Setter Property="FontFamily" Value="Segoe OI" /><Setter Property="FontFamily" Value="{StaticResource Segoe}" /> 关于颜色/画笔和其他类型,我有同样的问题。 推荐答案 在我看来,如果是一个小应用程序,答案总是没有。如果是一个大型应用,答案总是肯定的,基于以下古老的想法:If is a small application the answer is always no. If is a large application the answer is always yes, based on the following ancient idea: 如果你有一个三角形(A,B, C)这是从A到C的最快方式? If you have a triangle (A,B,C) which is the fastest way from A to C? a)从A到B到C? b)从A到C? 基于这个想法,我假设当你直接选择"Segoe UI"时,是最快的方式。Based on this idea, I assume that when you're poiting directly to the "Segoe UI" is the fastest way. 这篇关于Silverlight XAML StaticResource性能的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!
09-27 15:23