C# Class CalDavSynchronizer.Conversions.Msft.HtmlFromXamlConverter

HtmlToXamlConverter is a static class that takes an HTML string and converts it into XAML
Datei anzeigen Open project: aluxnimm/outlookcaldavsynchronizer

Private Methods

Method Description
AddComplexProperty ( XmlTextReader xamlReader, StringBuilder inlineStyle ) : void

Conberts an element notation of complex property into

ConvertXamlToHtml ( string xamlString, bool asFullDocument ) : string

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

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.