Skip to main content
Home Forums Silverlight Programming Programming with .NET - General Display large text in TextBox control
3 replies. Latest Post by ZZZZZZZZZ on November 5, 2009.
(0)
ZZZZZZZZZ
Member
3 points
10 Posts
11-03-2009 7:22 PM |
Hi,
I tried displaying 2MB of text data in TextBox control.
The scrolling is very slow and not very responsive.
Is there any other UI control to display large texts or should i enable any option in TextBox to actively work for large text data
varshavmane
Contributor
6743 points
1,585 Posts
11-04-2009 1:10 AM |
Do you want to edit that data?
If not then why dont you try wrap panel?
mhaggag
332 points
61 Posts
11-04-2009 7:41 PM |
TextBox wasn't created with large file display/editing scenarios in mind. There are no current plans to support them either. Are you interested in just displaying content, or editing as well?
Assuming the file contains logs or something similar, you could split these entries and use a virtualized list box with one item per entry for display.
11-05-2009 1:38 PM |
I tried the suggestion and here is the outcome
The data grid which has inbuild virtualization has worked beautifully in displaying large text files and still being responsive.
The wrap panel had the same problem the textbox had. The trick here is to use virtualization which renders only items that
are being viewed in the Control(e.g. datagrid and listbox)
Thanks for your suggestions.