1

In my project .I need to display loog texts,it is some kind of book app project .i know how to read a txt file in c# but it doesn't look efficient to me there should be more easy and customable ways. do you know any other way to display long texts

1 Answers1

0

You can use the WebBrowser control.

Here's the documentation for using it with a string.

XAML:

<phone:WebBrowser x:Name="webBrowser" />

C#:

string LongText = "blablabla";
webBrowser.NavigateToString(LongText);
mcont
  • 1,749
  • 1
  • 22
  • 33
  • i want to ask a question .when i read text into a string would i be able to change font with webbrowser control,i mean your string is longtext would you be able to change font size color etc from webrowser element – cihad yildiz May 02 '14 at 09:28
  • You can add a style with CSS: `` – mcont May 02 '14 at 13:21