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

Popular posts from this blog

Verilog Error: output or inout port "Q" must be connected to a structural net expression -

jasper reports - How to center align barcode using jasperreports and barcode4j -

c# - ASP.NET MVC - Attaching an entity of type 'MODELNAME' failed because another entity of the same type already has the same primary key value -