tom7
tom7

Reputation: 4162

Convert HTML to XAML

Is there a way to convert HTML into XAML? I noticed that you can paste HTML into a RichTextBox and you can get the XAML by looking at the FlowDocument. However, this is a hack. Is there a better way?

Upvotes: 17

Views: 35360

Answers (1)

Thomas Levesque
Thomas Levesque

Reputation: 292395

I don't think it's possible to do an exact conversion from HTML to XAML, because there isn't a one to one equivalence between the two.

There are a few tools that may help you, but don't expect a perfect result :

http://msdn.microsoft.com/en-us/library/aa972129.aspx

http://windowsclient.net/downloads/folders/controlgallery/entry2313.aspx

Upvotes: 8

Related Questions