title: problem loading resource from class library
body: <p>I have a class library (mylibrary) which has a resource called "close.png". I used redGate reflector to confirm that the resource is actually present in the dll.
  Now i use mylibrary.dll in a project where i attempt to extract this "close.png" resource like this :</p>
  
  <pre><code>BitmapImage crossImage = new BitmapImage();   
  crossImage.BeginInit();  
  crossImage.UriSource = new Uri(@"/mylibrary;component/Resources/close.png", UriKind.RelativeOrAbsolute);  
  crossImage.EndInit();
  </code></pre>
  
  <p>This BitmapImage crossImage is then used like :</p>
  
  <pre><code>Button closeButton = new Button()  
  {  
      Content = new System.Windows.Controls.Image()  
      {  
          Source = crossImage  
      },  
      MaxWidth = 20,  
      MaxHeight = 20  
  };
  </code></pre>
  
  <p>On doing this i get no exceptions being thrown but the button shows no image. 
  Also, i do see some exception info if i investigate the button's 'content' in the debugger.</p>