开发者

Silverlight Project Advice - Sharing resources between projects in Solution/Projects

开发者 https://www.devze.com 2023-01-05 07:52 出处:网络
My Visual Studio solution has many projects within it, like a DAL, BLL, UI Forms, etc.It is getting quite large and now, my Silverlight project that contains all of the UI controls will be splitting u

My Visual Studio solution has many projects within it, like a DAL, BLL, UI Forms, etc. It is getting quite large and now, my Silverlight project that contains all of the UI controls will be splitting up into other more modular projects. Currently, within my Silverlight project, I have a Resources folder where it has Styles.xaml an开发者_运维技巧d other custom dictionaries and an Images folder with images that are used on our UI layer. I would like to move these Resources (both Dictionaries and Images) into their own project and thus it's own assembly.

My question is, how can I reference these Resources and Images from another project in my Solution? Any ideas or references will be greatly appreciated.

Currently, I am using stuff like this:

<Image Source="../Images/Submit.png" />


You need to use fully qualified assembly references such as below:

<Image Source=”/{assemblyName};component/MyImage.jpg”/>

0

精彩评论

暂无评论...
验证码 换一张
取 消