<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.silverlight.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Programming with .NET - General</title><link>http://forums.silverlight.net/forums/17.aspx</link><description>General discussions around authoring Silverlight .NET applications.</description><dc:language>en</dc:language><generator>CommunityServer 2007 (Build: 20416.853)</generator><item><title>Re: Re: Resource file from other project</title><link>http://forums.silverlight.net/forums/thread/240667.aspx</link><pubDate>Thu, 02 Jul 2009 08:44:26 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:240667</guid><dc:creator>cybercandyman</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/240667.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=17&amp;PostID=240667</wfw:commentRss><description>&lt;p&gt;thank you for your answer.&lt;/p&gt;&lt;p&gt;My resource file is loaded by the main project into the global application, so I have solved my problem with :&lt;/p&gt;&lt;p&gt;System.Resources.ResourceManager reader = new ResourceManager(&amp;quot;xxx.Player.Resource&amp;quot;, Application.Current.GetType().Assembly);&lt;br /&gt;&lt;/p&gt;&lt;p&gt;m_messageBoxDialog.ShowAsModal(reader.GetString(&amp;quot;MsgBoxCheckField&amp;quot;)); &lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Resource file from other project</title><link>http://forums.silverlight.net/forums/thread/240628.aspx</link><pubDate>Thu, 02 Jul 2009 07:21:54 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:240628</guid><dc:creator>nirav_2052003</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/240628.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=17&amp;PostID=240628</wfw:commentRss><description>&lt;p&gt;If I understand your requirement correctly, you have two silverlight projects. One contains resource.resx file. You want to use one of the key value of this resource file in the other silverlight project.&lt;/p&gt;
&lt;p&gt;If this is the case, it is not possible, because the resource file will be part of the application xap file which will get loaded to client side. If you want to access the same resource file in second silverlight application you have to load the entire xap file of first silverlight application and get the resource file from that same in second silverlight application.&lt;/p&gt;
&lt;p&gt;I suggest this is not the good way. Better to have separate resource files in both the silverlight applications.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Nirav&lt;/p&gt;</description></item><item><title>Resource file from other project</title><link>http://forums.silverlight.net/forums/thread/239613.aspx</link><pubDate>Tue, 30 Jun 2009 10:59:26 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:239613</guid><dc:creator>cybercandyman</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/239613.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=17&amp;PostID=239613</wfw:commentRss><description>&lt;p&gt;Hello,&lt;/p&gt;&lt;p&gt;I have a silverlight application composed with several project in csharp. &lt;/p&gt;&lt;p&gt;In the main project I have a ressource file named : Resource.resx. I&amp;#39;ve made a reference in xaml with&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;pre class="coloredcode"&gt;    &amp;lt;&lt;span class="tag"&gt;Application.Resources&lt;/span&gt;&amp;gt;&lt;br /&gt;        &amp;lt;&lt;span class="tag"&gt;local:Resource&lt;/span&gt;&lt;span class="attr"&gt;   x:Key=&lt;/span&gt;&lt;span class="attrv"&gt;&amp;quot;LanguageRessource&amp;quot;&lt;/span&gt;/&amp;gt;&lt;br /&gt;    &amp;lt;/&lt;span class="tag"&gt;Application.Resources&lt;/span&gt;&amp;gt; &lt;/pre&gt;&lt;br /&gt;&lt;p&gt;In other project i have access to this ressource when i bind in XAML like :&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;pre class="coloredcode"&gt;&amp;lt;&lt;span class="tag"&gt;TextBlock&lt;/span&gt;&lt;span class="attr"&gt; Text=&lt;/span&gt;&lt;span class="attrv"&gt;&amp;quot;{Binding Path=LinkHTML, Source={StaticResource LanguageRessource}}&amp;quot;&lt;/span&gt;&lt;span class="attr"&gt;  Width=&lt;/span&gt;&lt;span class="attrv"&gt;&amp;quot;80&amp;quot;&lt;/span&gt;&lt;span class="attr"&gt; Foreground=&lt;/span&gt;&lt;span class="attrv"&gt;&amp;quot;#FFB5B5B5&amp;quot;&lt;/span&gt;/&amp;gt;&lt;/pre&gt;&amp;nbsp;&lt;br /&gt;&lt;p&gt;It works !!!&lt;/p&gt;&lt;p&gt;But I&amp;#39;m looking to get some value from this resource from the code behind in other project without success :(&lt;/p&gt;&lt;p&gt;How to do this ? &lt;br /&gt;&lt;/p&gt;&lt;p&gt;i am currently trying with something around this, but it does not work :&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;pre class="coloredcode"&gt;m_messageBoxDialog.ShowAsModal(reader.GetString(&lt;span class="st"&gt;&amp;quot;AboutCurrentProgram&amp;quot;&lt;/span&gt;,Application.Current.Resources));&lt;/pre&gt;&amp;nbsp; &lt;br /&gt;Thanks !!!!&lt;br /&gt;</description></item></channel></rss>