WP7 TextBlock-da ma'lumotlarni qanday ko'rsatish mumkin?

Men TextBlock havolasini yaratdim:



String largeText = "";

content.Text=largeText;

largeText has 3000 pixels, but only 2048 are being displayed. It shows empty text after that.

TextBlock-da largeText ni qanday ko'rsatish mumkin?

1
TextBlockni ScrollViewer bilan o'rashga harakat qiling
qo'shib qo'ydi muallif Justin XL, manba
Men faqat bu formatman. boshqa matnlar bo'sh joyga kelgandan keyin 2048 pikselni ko'rsatmoqda.
qo'shib qo'ydi muallif Jeeva, manba

2 javoblar

Try using this scrollabletextbox control - http://blogs.msdn.com/b/priozersk/archive/2010/09/08/creating-scrollable-textblock-for-wp7.aspx

However, its important to note that such large chunks of text are going to have serious impacts on your applications performance, and you should consider some kind of pagination for your text content, as mentioned in this question - wp7 - TextBlock with a lot of text - huge memory usage - how to avoid it?

2
qo'shib qo'ydi

Windows Phone uchun ekran chegarasi har qanday nazoratning balandligi yoki kengligi uchun 2048 pikselni tashkil etadi. Katta kontentni bitta boshqaruvda namoyish qila olmaysiz.

0
qo'shib qo'ydi