title: Cannot create an instance of an abstract class - From documentation
body: <p>I am trying to decode a Tiff image using the code provided in the Microsoft Documentation:</p>
  
  <p><a href="http://msdn.microsoft.com/en-us/library/system.windows.media.imaging.tiffbitmapdecoder(v=vs.110).aspx" rel="nofollow">http://msdn.microsoft.com/en-us/library/system.windows.media.imaging.tiffbitmapdecoder(v=vs.110).aspx</a></p>
  
  <p>However, when I get to this line:</p>
  
  <pre><code>Image myImage = new Image();
  </code></pre>
  
  <p>I get an error telling me that I cannot create an instance of an abstract class. I already knew you cannot create an instance of an abstract class, I'm wondering why is this in the documentation? </p>
  
  <p>Here is the whole block of code that is causing problems:</p>
  
  <pre><code>Image myImage = new Image();
  myImage.Source = bitmapSource;
  myImage.Stretch = Stretch.None;
  myImage.Margin = new Thickness(20);
  </code></pre>
  
  <p>It also says that System.Drawing.Image does not contain a definition for <code>.Source</code>, <code>.Stretch</code> and <code>.Margin</code> which got me thinking I need to use a different namespace? So when I looked up the documentation for <code>Image.Source</code>:</p>
  
  <p><a href="http://msdn.microsoft.com/en-us/library/system.drawing.image(v=vs.110).aspx" rel="nofollow">http://msdn.microsoft.com/en-us/library/system.drawing.image(v=vs.110).aspx</a></p>
  
  <p>It says it uses the <code>System.Windows.Controls</code> namespace which of course is a namespace that contains classes defined in <code>PresentationFramework.dll</code> - which I already have.</p>
  
  <p>Any ideas what I am missing?</p>