Click here to Skip to main content
12,761,464 members (33,590 online)
Rate this:
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">
Posted 25-Jul-12 22:44pm
Updated 27-Jul-12 18:00pm
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

Rate this: bad
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:
var contentRich = this.rtb.SelectedText;

After the code above, save contentRich into your XML.

Hope it helps.

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

    Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web01 | 2.8.170217.1 | Last Updated 27 Jul 2012
Copyright © CodeProject, 1999-2017
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