---
title: "TextBox Scrolling in Windows Phone App not working"  
description: "TextBox Scrolling in Windows Phone App not working"  
author: "Royce Roy"  
published: 2015-04-14  
updated: 2015-04-14  
canonical: https://www.mindstick.com/forum/23096/textbox-scrolling-in-windows-phone-app-not-working  
category: "xaml"  
tags: ["xaml", "windows phone"]  
reading_time: 2 minutes  

---

# TextBox Scrolling in Windows Phone App not working

I have a [page](https://www.mindstick.com/articles/13031/why-to-make-a-wikipedia-page) in a [Windows](https://www.mindstick.com/articles/311752/how-to-install-and-use-the-google-wifi-software-on-a-windows-or-mac-computer) [Phone app](https://www.mindstick.com/forum/23080/windows-phone-app-approval-process). This page is rather "tall". For that reason, the entire page is wrapped in a ScrollViewer. Towards the bottom of the page is a [TextBox](https://www.mindstick.com/forum/12714/dynamic-textbox-in-gridview). This TextBox is intended to be a multi-line TextBox with TextWrapping="Wrap". I need for the [user](https://www.mindstick.com/articles/13001/multi-statement-table-valued-user-defined-function-in-sql-server) to be able to scroll up-and-down within the TextBox to see the [content](https://www.mindstick.com/articles/13019/get-the-best-content-marketing-pricing-packages-for-your-brand) they have typed. However, I [am unable](https://answers.mindstick.com/qa/95314/how-do-i-access-a-group-link-in-telegram-if-i-am-unable-to-access-the-link) to scroll within the TextBox itself. Instead, when I attempt to scroll, the entire page scrolls. How do I remedy this? I tried adding ScrollViewer.VerticalScrollBarVisibility="[Auto](https://www.mindstick.com/forum/33810/remote-view-in-android-auto-cancel-custom-notification)" however, that does not seem to work either. Here is an exerpt of my XAML

```
<Grid x:Name="LayoutRoot" Background="{StaticResource PhoneBackgroundBrush}">  <Grid.RowDefinitions>    <RowDefinition Height="Auto"/>    <RowDefinition Height="*"/>  </Grid.RowDefinitions>  <StackPanel x:Name="TitlePanel" Grid.Row="0" Margin="12,17,0,28">    <TextBlock x:Name="ApplicationTitle" Text="APPNAME" Style="{StaticResource PhoneTextNormalStyle}" />    <TextBlock x:Name="PageTitle" Text="{Binding Path=PageTitle}" Margin="9,-7,0,0" Style="{StaticResource PhoneTextTitle1Style}"/>  </StackPanel>  <ScrollViewer Grid.Row="1">    <Grid x:Name="ContentPanel" Margin="12,0,12,0">       ...      <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" />    </Grid>  </ScrollViewer></Grid>
```

## Replies

### Reply by Anonymous User

In my experience, this is usually caused by incorrectly using an "auto" height tag or a "starSizing" height tag somewhere. I would try setting fixed heights for relevant elements (especially your RowDefinition) and see that helps


---

Original Source: https://www.mindstick.com/forum/23096/textbox-scrolling-in-windows-phone-app-not-working

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
