Click here to Skip to main content
15,886,199 members
Please Sign up or sign in to vote.
3.00/5 (1 vote)
See more:
I want to show large text data in a silvelight page?the text data should be scrollable what is the solution?
Posted

Use a TextBox and set the IsReadOnly property to true. Also look at the properties HorizontalScrollBarVisibility, VerticalScrollBarVisibility, and TextWrapping.
 
Share this answer
 
Hi,

You can use TextBox with TextMode = "Multiline". This will look like a TextArea having a Scrollbar on it.

You can also use StackPanel inside ScrollViewer to hold custom UserControls to load the contents.

If you are using Silverlight 4.0 Beta you can use RichTextArea too.

Please vote for it if this helps you.
 
Share this answer
 
To scroll vertically, You will have to fix the width of the textbox to something to allow a scroller to work. Set the max width to auto and turn vertical scroll on.

<Textblock ScrollViewer.VerticalScrollBarVisibility="Auto" MaxWidth="50"/>
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900