Skip to main content

Microsoft Silverlight

Answered Question Display large text in TextBox controlRSS Feed

(0)

ZZZZZZZZZ
ZZZZZZZZZ

Member

Member

3 points

10 Posts

Display large text in TextBox control

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
varshavmane

Contributor

Contributor

6743 points

1,585 Posts

Re: Display large text in TextBox control

Do you want to edit that data?

If not then why dont you try wrap panel?

Please "Mark as Answer" if this post answered your question. :)
Visit my Blog: http://varshavmane.blogspot.com/

mhaggag
mhaggag

Member

Member

332 points

61 Posts

Answered Question

Re: Display large text in TextBox control

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.

Muhammad Haggag.
SDE, Silverlight (Text feature team)

ZZZZZZZZZ
ZZZZZZZZZ

Member

Member

3 points

10 Posts

Re: Display large text in TextBox control

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.

  • Unanswered Question
  • Answered Question
  • Announcement
Microsoft Communities