Click here to Skip to main content
15,913,944 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How to save RichtextBox to Xml File in Silverlight,Please Help me..
Posted

please check the following link....

rich text box[^]

Regards
Sebastian
 
Share this answer
 
You can learn about Read and Write in XML files here Processing XML Data with XmlReader and XmlWriter (Silverlight).

So, I assume that you want to save the content of richtextbox on XML File, right?
XML
<richtextblock x:name="rtb" xmlns:x="#unknown" />

Code behind, something like this:
C#
this.rtb.SelectAll();
var contentRich = this.rtb.SelectedText;

After the code above, save contentRich into your XML.

Hope it helps.
 
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