title: Importing Images into Image boxes
body: <p>I'm trying to import an image into an "Image" box in c#.</p>
  
  <p>I have found when doing it in XAML it's just</p>
  
  <pre><code>source = "file location"
  </code></pre>
  
  <p>but when I try the following code in C#</p>
  
  <pre><code>myimage.source = "image.png"
  </code></pre>
  
  <p>my image being the name of the "Image" box it just returns this error:</p>
  
  
  
  <pre class="lang-none prettyprint-override"><code>Error: Cannot implicitly convert type 'string' to 'System.Windows.Media.ImageSource'
  </code></pre>
  
  <p>when looking online everyone seems to just quote using picture box but I don't have access to picture boxes, and if I didn't and point in the program "myimage" is displaying a live video stream. So, an image box is required I think. </p>