C# Class DynamicXaml.MarkupSystem.XamlWriter

A true XAML writer based on an XmlReader
Inheritance: IDisposable
Datei anzeigen Open project: flq/XamlTags Class Usage Examples

Public Methods

Method Description
AddAttribute ( bool condition, string attribute, string content ) : XamlWriter
AddAttribute ( string attribute, object content ) : XamlWriter
AddAttribute ( string attribute, string content ) : XamlWriter
CloseCurrentElement ( ) : XamlWriter
Dispose ( ) : void
IsElementOpen ( ) : bool
RegisterReference ( string ns, string clrNamespace, string assembly = null ) : void
StartElement ( string name ) : XamlWriter
StartElement ( string name, Action action ) : XamlWriter
XamlWriter ( TextWriter output, XamlWriterSettings settings = null, bool closeOutputStream = true ) : System

Private Methods

Method Description
ElementSwitch ( string text, string>.Action withoutNameSpace, string>.Action withNameSpace ) : void
StartRoot ( string name ) : void
WriteAllReferences ( ) : void

Method Details

AddAttribute() public method

public AddAttribute ( bool condition, string attribute, string content ) : XamlWriter
condition bool
attribute string
content string
return XamlWriter

AddAttribute() public method

public AddAttribute ( string attribute, object content ) : XamlWriter
attribute string
content object
return XamlWriter

AddAttribute() public method

public AddAttribute ( string attribute, string content ) : XamlWriter
attribute string
content string
return XamlWriter

CloseCurrentElement() public method

public CloseCurrentElement ( ) : XamlWriter
return XamlWriter

Dispose() public method

public Dispose ( ) : void
return void

IsElementOpen() public method

public IsElementOpen ( ) : bool
return bool

RegisterReference() public method

public RegisterReference ( string ns, string clrNamespace, string assembly = null ) : void
ns string
clrNamespace string
assembly string
return void

StartElement() public method

public StartElement ( string name ) : XamlWriter
name string
return XamlWriter

StartElement() public method

public StartElement ( string name, Action action ) : XamlWriter
name string
action Action
return XamlWriter

XamlWriter() public method

public XamlWriter ( TextWriter output, XamlWriterSettings settings = null, bool closeOutputStream = true ) : System
output System.IO.TextWriter
settings XamlWriterSettings
closeOutputStream bool
return System