title: Get dimensions (width and height) of an Image hosted online
body: <p>I want to get the dimensions of an Image, that is online, to know how tall the grid in which I would like to put it should be.
  I tried to put it in a temporary grid to get the "ActualHeight" of the "Image" (UI Element), but it's "NaN" (or 0).</p>
  
  <p>I usually use something like this (for Win32 .NET software), but I can't make it work in UWP:</p>
  
  <pre><code>Dim request As HttpWebRequest = DirectCast(WebRequest.Create(URL), HttpWebRequest)
  request.Method = "GET"
  request.Accept = "image/*"
  Dim response As HttpWebResponse = DirectCast(request.GetResponse(), HttpWebResponse)
  Dim s As Stream = response.GetResponseStream()
  Dim bmp As New Bitmap(s)
  Dim w As Integer = bmp.Width
  Dim h As Integer = bmp.Height
  </code></pre>
  
  <p>Either VB.Net or C# would work.</p>