title: C# WPF Visual Studio Resource Showing In Designer But Not At Run Time
body: <p>I'm using Visual Studio 2019 Community</p>
  
  <p>How I added the .png to my project.</p>
  
  <ol>
  <li><p>Open Resources.resx in the project</p></li>
  <li><p>Click Add Resource -> Add Existing File</p></li>
  <li><p>Select the .png file to add</p></li>
  </ol>
  
  <p>It is added to the program. I can see it in resources. It exists in my designer and displays properly in it. </p>
  
  <p>There are other images used in this program that have the exact same properties and that I can call at any time and they work just fine. However, these new ones do not. They are both .png files. I have tried cleaning and rebuilding the solution multiple times as well.</p>
  
  <p>Code for my xaml:</p>
  
  <pre><code>&lt;Image Source="Resources/FileName.png" Width="50" HorizontalAlignment="Left" Margin="5,5,0,0"/&gt;
  </code></pre>
  
  <p><strong>Resources Properties:</strong>
  Build Action = Embedded Resource</p>
  
  <p>Copy to Output Directory = Do not copy</p>
  
  <p><strong>Image Properties</strong>
  Persistence = Linked at compile time (same for working and not working resources)</p>