Click here to Skip to main content
11,430,402 members (74,175 online)
Rate this: bad
good
Please Sign up or sign in to vote.
See more: Silverlight5
How to Save A RichtextBox With Xml File in Silverlight,Please ...

             <richtextbox acceptsreturn="True">
             Margin="5"
             x:Name="rbtMyRichTextBox">
Posted 25-Jul-12 22:44pm
Edited 27-Jul-12 18:00pm
v4
Comments
Prasad_Kulkarni at 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 at 27-Jul-12 23:00pm
   
Please don't repost

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

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?
<richtextblock x:name="rtb" xmlns:x="#unknown" />


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

After the code above, save contentRich into your XML.

Hope it helps.
  Permalink  

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



Advertise | Privacy | Mobile
Web02 | 2.8.150428.2 | Last Updated 27 Jul 2012
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100