---
title: "Scrollable TextBox"  
description: "Scrollable TextBox"  
author: "Royce Roy"  
published: 2015-04-14  
updated: 2015-04-14  
canonical: https://www.mindstick.com/forum/23097/scrollable-textbox  
category: "xaml"  
tags: ["xaml", "windows phone"]  
reading_time: 1 minute  

---

# Scrollable TextBox

I have the [problem](https://yourviews.mindstick.com/view/81399/tackling-the-problem-of-unemployment-during-corona-pandemic) that the [user](https://www.mindstick.com/articles/13001/multi-statement-table-valued-user-defined-function-in-sql-server) can enter [text](https://www.mindstick.com/blog/301635/did-people-reinvent-texting-to-express-the-full-range-of-emotions) as [long](https://www.mindstick.com/articles/44565/white-wedding-dresses-long-prom-dresses) as he wants, but if the [visual](https://yourviews.mindstick.com/audio/1147/through-the-lens-a-visual-exploration-of-the-world) part of [TextBox](https://www.mindstick.com/forum/12714/dynamic-textbox-in-gridview) is [full](https://www.mindstick.com/articles/12893/experience-the-full-power-of-suitecrm) filled, it does not autoscroll to the new line

```
 <Grid x:Name="ContentPanel" Grid.Row="1" Margin="12,0,12,12">        <ListBox>            <ListBoxItem HorizontalContentAlignment="Stretch">                <toolkit:PhoneTextBox x:Name="PinNameTextBox" Hint="{Binding Path=LocalizedResources.Untitled, Source={StaticResource LocalizedStrings}}" Text="{Binding Name, Mode=TwoWay}" />            </ListBoxItem>            <ListBoxItem HorizontalContentAlignment="Stretch">                <TextBox x:Name="PinContentTextBox" Text="{Binding Text, Mode=TwoWay}" AcceptsReturn="True" TextWrapping="Wrap" InputScope="Text" />            </ListBoxItem>        </ListBox>    </Grid>
```

I have also tried the ScrollViewer but it does not work.\
![Scrollable TextBox](https://www.mindstick.com/mindstickforums/d068dc20-545f-45b1-b8f8-4e6e0f366880/images/1c2b2dcb-af2b-4ca4-8e54-ff2ddfc13a81.png)\

## Replies

### Reply by Anonymous User

I think this was already the same case with WP7; from what I've heard it is a platform restriction that causes UIElements like e.g. TextBoxes to be clipped if they exceed 2048px.

You could try to create an own TextBox control with a similar approach to what was done here, though. Hope that helps.


---

Original Source: https://www.mindstick.com/forum/23097/scrollable-textbox

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
