Click here to Skip to main content
16,017,638 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
How to Save A RichtextBox With Xml File in Silverlight,Please ...

XML
 <richtextbox acceptsreturn="True">
 Margin="5"
 x:Name="rbtMyRichTextBox">
<paragraph>
 <inlineuicontainer>
<Image Source="Assets/logo.png" Width="100"></Image>
 </inlineuicontainer>
</paragraph>
</richtextbox>
Posted
Updated 27-Jul-12 17:00pm
v4
Comments
Prasad_Kulkarni 26-Jul-12 3:46am    
You've already ask'd this question:
Save RichtextBox to xml in Silverlight[^]
Don't re-post your questions, If you want to modify or update your question then use 'Improve question' widget. But don't re-post it.
Sebastian T Xavier 27-Jul-12 23:00pm    
Please don't repost

1 solution

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