Note that there are some explanatory texts on larger screens.

plurals
  1. POTextBox Scrolling in Windows Phone App not working
    primarykey
    data
    text
    <p>I have a page in a Windows Phone app. This page is rather "tall". For that reason, the entire page is wrapped in a <code>ScrollViewer</code>. Towards the bottom of the page is a <code>TextBox</code>. This TextBox is intended to be a multi-line <code>TextBox</code> with <code>TextWrapping="Wrap"</code>. I need for the user to be able to scroll up-and-down within the <code>TextBox</code> to see the content they have typed. However, I am unable to scroll within the <code>TextBox</code> itself. Instead, when I attempt to scroll, the entire page scrolls. How do I remedy this? I tried adding <code>ScrollViewer.VerticalScrollBarVisibility="Auto"</code> however, that does not seem to work either. Here is an exerpt of my XAML.</p> <pre><code>&lt;Grid x:Name="LayoutRoot" Background="{StaticResource PhoneBackgroundBrush}"&gt; &lt;Grid.RowDefinitions&gt; &lt;RowDefinition Height="Auto"/&gt; &lt;RowDefinition Height="*"/&gt; &lt;/Grid.RowDefinitions&gt; &lt;StackPanel x:Name="TitlePanel" Grid.Row="0" Margin="12,17,0,28"&gt; &lt;TextBlock x:Name="ApplicationTitle" Text="APPNAME" Style="{StaticResource PhoneTextNormalStyle}" /&gt; &lt;TextBlock x:Name="PageTitle" Text="{Binding Path=PageTitle}" Margin="9,-7,0,0" Style="{StaticResource PhoneTextTitle1Style}"/&gt; &lt;/StackPanel&gt; &lt;ScrollViewer Grid.Row="1"&gt; &lt;Grid x:Name="ContentPanel" Margin="12,0,12,0"&gt; ... &lt;TextBox x:Name="bodyTextBox" Text="{Binding Path=Body, Mode=TwoWay}" Height="145" TextWrapping="Wrap" InputScope="Text" Grid.Row="6" MaxLength="1024" Margin="0,-8,0,0" /&gt; &lt;/Grid&gt; &lt;/ScrollViewer&gt; &lt;/Grid&gt; </code></pre> <p>Thank you for any insights you may provide.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload