title: Avalonia: How to display PNG as image?
body: <p>I haven't seen an F# example of accomplishing this, or any examples similar enough to what I am trying to do, so hopefully a solution here will be helpful to others.</p>
  <p>I am using Avalonia with F# to build a simple UI. I want to include images in my UI, but have spent hours looking at documentation and examples and everything I've seen looks to be overcomplicated (maybe it really is just that complicated?).</p>
  <p>I am creating an image like:</p>
  <pre><code>let b = (Avalonia.Media.Imaging.Bitmap @&quot;C:\Images\icon.png&quot;)
  Image.create [
      Image.source b
  ]
  </code></pre>
  <p>This just displays nothing. What am I missing here?</p>