样式和User.Resources-Silverlight [英] Styles and User.Resources - Silverlight

查看:81
本文介绍了样式和User.Resources-Silverlight的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以像在asp.net中使用.css文件一样将样式和User.Resources从xaml页移动到其他文件?

Can we move styles and User.Resources from a xaml page to some other file just like what we do with .css file in asp.net?

推荐答案

是的,一点没错.请参阅 http://msdn.microsoft.com/en-us/library/cc903952( VS.95).aspx [
Yes, absolutely. See http://msdn.microsoft.com/en-us/library/cc903952(VS.95).aspx[^]


总体而言,您应该这样做.所有公共资源都应移至公共字典中.

只是作为示例,请参见
此处 [
On the whole, you should be doing that. All common resources should be moved to a common dictionary.

Just as a sample, see here[^].


这篇关于样式和User.Resources-Silverlight的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆