c# 4.0 - How to convert HTML codes to XAML in Windows Phone -
I'm building a Windows Phone application, I'm getting HTML code from web service response, like
"& amp; nbsp; & lt; br & gt;" How can I convert them to xaml? Is there any steady method available?
Because I have tried the HTTTP mahotode, but not the converting result
< P> You may use this HTML in XAMML Flow Document Converter: You can then use a custom control, here is an example:
< Code> & lt; ControlTemplate TargetType = "{x: type local: northbox control}" & gt; & Lt; Border border brush = "black" borderticiness = "1" background = "#f 0a6" maxheit = "320" width = "300" & gt; & Lt; FlowDocumentScrollViewer VerticalScrollBarVisibility = "Auto" MaxHeight = "320" height = "Auto" document = "{TemplateBinding TestText2, Converter = {StaticResource HtmlToFlowDocumentConverter}}" /> & Lt; / Border & gt; & Lt; / ControlTemplate & gt;
Comments
Post a Comment