C# 클래스 MarkupConverter.HtmlFromXamlConverter

HtmlToXamlConverter is a static class that takes an HTML string and converts it into XAML
파일 보기 프로젝트 열기: mmanela/MarkupConverter 1 사용 예제들

공개 메소드들

메소드 설명
ConvertXamlToHtml ( string xamlString, bool asFullDocument ) : string

Main entry point for Xaml-to-Html converter. Converts a xaml string into html string.

비공개 메소드들

메소드 설명
AddComplexProperty ( XmlTextReader xamlReader, StringBuilder inlineStyle ) : void

Conberts an element notation of complex property into

ParseXamlColor ( string color ) : string
ParseXamlThickness ( string thickness ) : string
ReadNextToken ( XmlReader xamlReader ) : bool

Reads several items from xamlReader skipping all non-significant stuff.

WriteElement ( XmlTextReader xamlReader, XmlTextWriter htmlWriter, StringBuilder inlineStyle ) : void

Converts a xaml element into an appropriate html element.

WriteElementContent ( XmlTextReader xamlReader, XmlTextWriter htmlWriter, StringBuilder inlineStyle ) : void

Reads a content of current xaml element, converts it

WriteFlowDocument ( XmlTextReader xamlReader, XmlTextWriter htmlWriter, bool asFullDocument ) : bool

Processes a root level element of XAML (normally it's FlowDocument element).

WriteFormattingProperties ( XmlTextReader xamlReader, XmlTextWriter htmlWriter, StringBuilder inlineStyle ) : void

Reads attributes of the current xaml element and converts them into appropriate html attributes or css styles.

메소드 상세

ConvertXamlToHtml() 공개 정적인 메소드

Main entry point for Xaml-to-Html converter. Converts a xaml string into html string.
public static ConvertXamlToHtml ( string xamlString, bool asFullDocument ) : string
xamlString string /// Xaml strinng to convert. ///
asFullDocument bool
리턴 string