title: Correct way to set ScrollViewer (for vertical scrolling) on a WPF Frame?
body: <p>does anyone know the difference between defining a vertical scrollbar on a frame like this:</p>
  
  <pre><code>        &lt;ScrollViewer Grid.Row="2" VerticalScrollBarVisibility="Auto"&gt;
              &lt;Frame Name="Frame1"
                     ScrollViewer.CanContentScroll="True" /&gt;
          &lt;/ScrollViewer&gt;
  </code></pre>
  
  <p>or like this:</p>
  
  <pre><code>        &lt;ScrollViewer Grid.Row="2"&gt;
              &lt;Frame Name="Frame1"
                     ScrollViewer.VerticalScrollBarVisibility="Auto"
                     ScrollViewer.CanContentScroll="True" /&gt;
          &lt;/ScrollViewer&gt;
  </code></pre>
  
  <p>This frame is nested in a WebBrowser control and setting it the first way correctly displays the vertical scrollbar and is only visible when it needs to scroll (auto). When I set it the second way the vertical scrollbar works but is always visible even when it does not need to scroll (visible).  </p>
  
  <p>I am going to use the 1st option because it meets my needs, but I don't want to be surprised down the road if I am setting it incorrectly.</p>
  
  <p>Thanks!</p>