title: Silverlight: App.Current.Resources is empty
body: <p>What I have doen has been based on this article:
  <a href="http://msdn.microsoft.com/en-us/library/aa348547.aspx" rel="nofollow">http://msdn.microsoft.com/en-us/library/aa348547.aspx</a></p>
  
  <p>I am trying to get a string from a merged dictionary that is loaded in app.xaml.
  I am trying to do this from a class that is not a code behind file.
  I know that the resource file can load in principle because page elements are being styled from the xaml markup from styles contained in the Styles.xaml file.</p>
  
  <p>The app.xaml file</p>
  
  <pre><code>&lt;Application
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"   
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"   
    x:Class="theApp.App"&gt;
      &lt;Application.Resources&gt;
          &lt;ResourceDictionary&gt;
              &lt;ResourceDictionary.MergedDictionaries&gt;
                  &lt;ResourceDictionary Source="Assets/Styles.xaml"/&gt;
              &lt;/ResourceDictionary.MergedDictionaries&gt;
          &lt;/ResourceDictionary&gt;
      &lt;/Application.Resources&gt;
  &lt;/Application&gt;
  </code></pre>
  
  <p>the styles.xaml file (edited down for simplicity)</p>
  
  <pre><code>&lt;ResourceDictionary
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      xmlns:sdk="http://schemas.microsoft.com/winfx/2006/xaml/presentation/sdk"
       xmlns:clr="clr-namespace:System;assembly=mscorlib"&gt;
  
      &lt;clr:String x:Key="applicationName"&gt;TheKraken&lt;/clr:String&gt;
  &lt;/ResourceDictionary&gt;
  </code></pre>
  
  <p>The line of code i am using to try and access the resource</p>
  
  <pre><code>string appName = (string)App.Current.Resources["applicationName"];
  </code></pre>
  
  <p>Any idea what i am missing?</p>