title: Scrollviewer not scrolling without height
body: <p>I am writing a Windows Phone 8.1 app (WINRT).</p>
  
  <p>I have implemented a <strong>scrollviewer</strong> in page. It contains a <strong>stackpanel</strong> having <strong>richtextblock with long texts</strong>, and a <strong>button</strong>.</p>
  
  <p>But the problem is that this scrollviewer is <strong>not scrolling</strong> at all. If i am manually setting a <strong>height</strong> to this scrollviewer it is scrolling but it looks ugly on higher resolutions. How to make this scrollviewer work without having manual height to it.</p>
  
  <pre><code>&lt;ScrollViewer Name="WhyJoin_User_Content_Scroll"
                                Margin="0,10,0,10" 
                                VerticalScrollBarVisibility="Auto"
                                &gt;
  &lt;StackPanel Orientation="Vertical"&gt;
      &lt;RichTextBlock Name="WhyJoin_User_Content_RichTextBlock"
                      FontWeight="Light"
                      Margin="20,10,20,0" 
                      Foreground="{StaticResource DefaultTheme_DarkBlueColor}"
                      FontSize="19"
                      TextWrapping="Wrap"
                       TextAlignment="Justify"&gt;
          &lt;RichTextBlock.Blocks&gt;
              &lt;Paragraph&gt;
                  &lt;Paragraph.Inlines&gt;
                      &lt;Run Text=" Text Text Text Text Text Text Text Text "&gt;
                      &lt;/Paragraph.Inlines&gt;
                  &lt;/Paragraph&gt;
                  &lt;Paragraph&gt;
                      &lt;Paragraph.Inlines&gt;
                          &lt;Run Text=" Text Text Text Text Text Text Text Text "&gt;
                          &lt;/Paragraph.Inlines&gt;
                      &lt;/Paragraph&gt;
                      &lt;Paragraph&gt;
                          &lt;Paragraph.Inlines&gt;
                              &lt;Run Text=" Text Text Text Text Text Text Text Text "&gt;&lt;/Run&gt;
                          &lt;/Paragraph.Inlines&gt;
                      &lt;/Paragraph&gt;
                      &lt;Paragraph&gt;
                          &lt;Paragraph.Inlines&gt;
                              &lt;Run Text=" Text Text Text Text Text Text Text Text "&gt;&lt;/Run&gt;
                          &lt;/Paragraph.Inlines&gt;
                      &lt;/Paragraph&gt;
                      &lt;Paragraph&gt;
                          &lt;Paragraph.Inlines&gt;
                              &lt;Run Text="i: Practice work hours of experts"&gt;&lt;/Run&gt;
                          &lt;/Paragraph.Inlines&gt;
                      &lt;/Paragraph&gt;
                      &lt;Paragraph&gt;
                          &lt;Paragraph.Inlines&gt;
                              &lt;Run Text="ii: Address, Phone numbers etc."&gt;&lt;/Run&gt;
                          &lt;/Paragraph.Inlines&gt;
                      &lt;/Paragraph&gt;
                      &lt;Paragraph&gt;
                          &lt;Paragraph.Inlines&gt;
                              &lt;Run Text="iii: Appointment requests"&gt;&lt;/Run&gt;
                          &lt;/Paragraph.Inlines&gt;
                      &lt;/Paragraph&gt;
                      &lt;Paragraph&gt;
                          &lt;Paragraph.Inlines&gt;
                              &lt;Run Text=" Text Text Text Text Text Text Text Text "&gt;&lt;/Run&gt;
                          &lt;/Paragraph.Inlines&gt;
                      &lt;/Paragraph&gt;
                  &lt;/RichTextBlock.Blocks&gt;
              &lt;/RichTextBlock&gt;
              &lt;Button 
                          x:Name="ButtonWhyJoin_User_Register"    
                          BorderThickness="0"
                          Width="150"   
                          Height="70"
                              Margin="0,10,0,0"
                              HorizontalAlignment="Center"
  
                          Click="ButtonWhyJoin_User_Register_Click"
                          FontWeight="ExtraLight"
                          Background="{StaticResource DefaultTheme_DarkBlueColor}" 
                          BorderBrush="{x:Null}" 
                          Style="{StaticResource ButtonStyleYesNo}"  
                          Foreground="{StaticResource DefaultTheme_BackgroundColor}"/&gt;
          &lt;/StackPanel&gt;
      &lt;/ScrollViewer&gt;
  </code></pre>