title: WPF Image Zooming
body: <p>I have a Viewbox with an Image inside of it. This is great since the Viewbox will scale the Image to fit the window. However, I need to be able to zoom the image to its full size and show scroll bars and I am having a hard time figuring out how to do this.</p>
  
  <p>Here's what I have right now. Can anyone give some pointers on how I can modify this to implement the above functionality?</p>
  
  <pre><code>&lt;Viewbox x:Name="viewbox"&gt;
      &lt;StackPanel&gt;
          &lt;Image x:Name="image" Source="ranch.jpg" /&gt;
      &lt;/StackPanel&gt;
  &lt;/Viewbox&gt;
  </code></pre>
  
  <p>Edit:
  Just to clarify. I need both ways of viewing the image, the viewbox style of fitting the window AND the ability to toggle to an Actual Size view that shows scrollbars and doesn't resize the image.</p>