替换“动态资源”与“静态资源”
为了实现我的应用程序,我使用了很多 Blend3。当 Blend3 想要将一个资源链接到另一个资源时,它会多次使用链接类型“DynamicResource”。正如我所理解的(但我可能理解得不太好),只有当我想在运行时修改链接时,“动态”链接才有意义。在其他情况下,他们徒劳地使用更多内存。我不想在运行时修改任何内容,那么问题是:在我的所有应用程序中用“StaticResource”替换“DynamicResource”是否有意义? 谢谢你! 皮莱吉
To realize my application I have used a lot Blend3. When Blend3 wants to link a resource to another resource, it uses many times the link-type "DynamicResource". As I have understood (but I could have understood not well), the "Dynamic" links have sense only if I want to modify the links at runtime. In other cases they use more memory in vain. I don't want to modify anything at runtime, then the question is: have sense to replace "DynamicResource" with "StaticResource" in all my application?
Thank you!
Pileggi
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
Blend 在设计时使用 DynamicResource 效果更好。请参阅:
http:// /blogs.msdn.com/b/unnir/archive/2009/03/31/blend-wpf-and-resource-references.aspx
报价如下:
Blend works better in design time with DynamicResource. See:
http://blogs.msdn.com/b/unnir/archive/2009/03/31/blend-wpf-and-resource-references.aspx
The money quote from that: