Aug 26

Written by: Soul Solutions
Wednesday, 26 August 2009 

htmltoxaml The project I’m working on at the moment I’m taking a bunch of content that in the previous system was stored as HTML and I’ve re-written the application in WPF and displaying the content as a FlowDocument.  Today I sat down to look at how to do the data conversion, basically I needed to convert HTML to XAML.  After looking at it awhile and thinking it’s quite a bit of work, someone else must have done this before I stumbled upon the HTML to XAML Prototype Conversion Utility. Now the code has a lot of todo’s but the HTML I was working on was pretty simple..basic font sizes, bold, italic, text align etc and this worked a treat and saved me a lot of code and testing. Just had to tweak it a bit to output the document the way I wanted it and it was all good.

Technorati Tags: ,

Tags:

1 comment(s) so far...

Re: Converting HTML to XAML

Hi i also used this utility but i faced a small problem. When i tried to convert the XAML to HTML it gave me the equivalent HTML text in return but without the actual text that was specified in the Text property of XAML. Can you suggest me a solution to this

By Madhur Natalkar on   Monday, 25 April 2011

Your name:
Your email:
(Optional) Email used only to show Gravatar.
Your website:
Title:
Comment:
Security Code
Enter the code shown above in the box below
Add Comment   Cancel 
Copyright © 2002-2009 Soul Solutions Pty Ltd. | Login