Click here to Skip to main content
13,045,790 members (45,795 online)
Rate this:
Please Sign up or sign in to vote.
See more:
Hi all

I am working in WPF Richtextbox Editor.
I am able to make bold,Formatting and all.
When i save i save as html.
When i reassign to Richtextbox editor, the tags are not recognised like .
How to do in wpf Richtextbox?

Posted 26-Nov-12 0:33am

1 solution

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

Solution 1

There is no "assign". In principle, you can translate one into another using one more input source: some mapping rules between those different formats. You can get some ideas on how to do that if you see the source code in this two CodeProject articles:
WPF HTML Supported TextBlock[^],
A Professional HTML Renderer You Will Use[^].

They won't solve your problem, just will give you some ideas — the projects use Rich Text to represent (render) HTML. As to your problem, you should at least formulate it. "Assign" HTML to something is closer to importing of HTML, but you mention "save as HTML". Those two concepts are almost the opposites. First decide what you really want to achieve. And, first of all, always explain your ultimate goal when asking questions.


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
Web02 | 2.8.170713.1 | Last Updated 26 Nov 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