title: How can I get my ScrollViewer to scroll the view area?
body: <p>I have a <strong>Grid</strong> inside a <strong>ScrollViewer</strong> inside a <strong>Border</strong> inside a <strong>StackPanel</strong> inside a <strong>Window</strong>.</p>
  
  <p>The ScrollViewer puts a <strong>scrollbar</strong> on the right, but it is <strong>not scrollable</strong>.</p>
  
  <p><strong>How can I get the ScrollViewer to make its contents scrollable?</strong></p>
  
  <p><a href="http://www.deviantsart.com/upload/1bl34e1.png">alt text http://www.deviantsart.com/upload/1bl34e1.png</a></p>
  
  <pre><code>&lt;Window x:Class="TestScroll234343.Window1"
      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      Title="Window1" Height="150" Width="300"&gt;
      &lt;StackPanel&gt;
      &lt;!--&lt;StackPanel Height="150"&gt; doesn't work either--&gt;
          &lt;Border&gt;
              &lt;ScrollViewer&gt;            
                  &lt;Grid&gt;
                      &lt;Grid.ColumnDefinitions&gt;
                          &lt;ColumnDefinition Width="Auto"/&gt;
                      &lt;/Grid.ColumnDefinitions&gt;
                      &lt;Grid.RowDefinitions&gt;
                          &lt;RowDefinition Height="Auto"/&gt;
                          &lt;RowDefinition Height="Auto"/&gt;
                          &lt;RowDefinition Height="Auto"/&gt;
                          &lt;RowDefinition Height="Auto"/&gt;
                          &lt;RowDefinition Height="Auto"/&gt;
                          &lt;RowDefinition Height="Auto"/&gt;
                          &lt;RowDefinition Height="Auto"/&gt;
                          &lt;RowDefinition Height="Auto"/&gt;
                          &lt;RowDefinition Height="Auto"/&gt;
                          &lt;RowDefinition Height="Auto"/&gt;
                      &lt;/Grid.RowDefinitions&gt;
  
                      &lt;TextBlock Grid.Row="0" Grid.Column="0" Text="Row0"/&gt;
                      &lt;TextBlock Grid.Row="1" Grid.Column="0" Text="Row1"/&gt;
                      &lt;TextBlock Grid.Row="2" Grid.Column="0" Text="Row2"/&gt;
                      &lt;TextBlock Grid.Row="3" Grid.Column="0" Text="Row3"/&gt;
                      &lt;TextBlock Grid.Row="4" Grid.Column="0" Text="Row4"/&gt;
                      &lt;TextBlock Grid.Row="5" Grid.Column="0" Text="Row5"/&gt;
                      &lt;TextBlock Grid.Row="6" Grid.Column="0" Text="Row6"/&gt;
                      &lt;TextBlock Grid.Row="7" Grid.Column="0" Text="Row7"/&gt;
                      &lt;TextBlock Grid.Row="8" Grid.Column="0" Text="Row8"/&gt;
                      &lt;TextBlock Grid.Row="9" Grid.Column="0" Text="Row9"/&gt;
                  &lt;/Grid&gt;
              &lt;/ScrollViewer&gt;
          &lt;/Border&gt;
  
      &lt;/StackPanel&gt;
  &lt;/Window&gt;
  </code></pre>