title: SplashScreen IOException
body: <pre><code>SplashScreen s = new SplashScreen(System.Reflection.Assembly.GetExecutingAssembly(),"splash.png");
  s.Show(false);
  </code></pre>
  
  <p>when invoking <code>s.Show()</code> whether the parameter is <code>false</code> or <code>true</code>, it throws an <code>IOException</code>
  with the message </p>
  
  <blockquote>
    <p>Cannot locate resource 'splash.png'</p>
  </blockquote>
  
  <p>even though that splash.png is added to resources and its <strong>Build Action</strong> is <strong>Resource</strong>.</p>
  
  <p>I have noticed many problems when using images in WPF, also with <code>Image</code> control.</p>