Click here to Skip to main content
15,913,939 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
HTML
<richtextbox acceptsreturn="True">
             Margin="5"
             x:Name="rbtMyRichTextBox">
    <paragraph>
        <inlineuicontainer>
            <Image Source="Assets/logo.png" Width="100"></Image>
        </inlineuicontainer>
    </paragraph>
</richtextbox>

Please help me.
Posted
Updated 25-Jul-12 21:49pm
v2
Comments
Christian Amado 13-Aug-12 8:13am    
The solution helped to you?

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
 
Comments
Sandeep Mewara 26-Jul-12 12:46pm    
My 51 Good answer.
Christian Amado 26-Jul-12 13:21pm    
Nice to help you. Can you mark as solution? Just for help to another user

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