title: Save wpf view as image, preferably .png
body: <p>I have <a href="http://msdn.microsoft.com/en-us/library/ms748873.aspx#_wpfImaging" rel="nofollow noreferrer">searched</a> and understand how to save an image in WPF by using <code>BmpBitmapEncoder</code>. My program has a MVVM view that I want to save as an image. Is it possible to set it as <code>BitmapFrame</code> so I can encode it? If so, is there an online tutorial?</p>
  <p>Listed below is the view I want to save.</p>
  <pre class="lang-xml prettyprint-override"><code>&lt;Grid&gt;
      &lt;view:OverallView Grid.Row=&quot;1&quot;
          Visibility=&quot;{Binding IsOverallVisible,Converter={StaticResource B2VConv}}&quot; /&gt;
  &lt;/Grid&gt;
  </code></pre>
  <p><code>OverallView</code> is a user control.</p>
  <hr />
  <p>If setting a view as a <code>BitmapFrame</code> is not possible, what wpf elements can be set as a <code>BitmapSource/Frame</code>?</p>