Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: WPF
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?
 

Regards
Froxy
Posted 26-Nov-12 0:33am
froxy1.1K

1 solution

Rate this: bad
good
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.
 
—SA
  Permalink  
v3

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

  Print Answers RSS
0 Sergey Alexandrovich Kryukov 6,532
1 OriginalGriff 5,976
2 CPallini 2,473
3 Richard MacCutchan 1,687
4 Abhinav S 1,550


Advertise | Privacy | Mobile
Web02 | 2.8.140821.2 | Last Updated 26 Nov 2012
Copyright © CodeProject, 1999-2014
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