C# Class ICSharpCode.WpfDesign.XamlDom.XamlDocument

Represents a .xaml document.
Mostrar archivo Open project: icsharpcode/WpfDesigner Class Usage Examples

Private Properties

Property Type Description
GetNamespaceFor string
GetNamespacesFor List
GetPrefixForNamespace string
GetTypeDescriptorContext ITypeDescriptorContext
IsNativeType bool
ParseComplete void
XamlDocument System
XamlDocument System

Public Methods

Method Description
CreateNullValue ( ) : ICSharpCode.WpfDesign.XamlDom.XamlPropertyValue

Creates a value that represents {x:Null}

CreateObject ( object instance ) : XamlObject

Create an XamlObject from the instance.

CreatePropertyValue ( object instance, ICSharpCode.WpfDesign.XamlDom.XamlProperty forProperty ) : ICSharpCode.WpfDesign.XamlDom.XamlPropertyValue

Create a XamlPropertyValue for the specified value instance.

Save ( XmlWriter writer ) : void

Saves the xaml document into the writer.

Private Methods

Method Description
GetNamespaceFor ( Type type, bool getClrNamespace = false ) : string
GetNamespacesFor ( Type type, bool getClrNamespace = false ) : List
GetPrefixForNamespace ( string @namespace ) : string
GetTypeDescriptorContext ( XamlObject containingObject ) : ITypeDescriptorContext

Gets the type descriptor context used for type conversions.

IsNativeType ( object instance ) : bool
ParseComplete ( XamlObject rootElement ) : void

Called by XamlParser to finish initializing the document.

XamlDocument ( ) : System
XamlDocument ( XmlDocument xmlDoc, XamlParserSettings settings ) : System

Internal constructor, used by XamlParser.

Method Details

CreateNullValue() public method

Creates a value that represents {x:Null}
public CreateNullValue ( ) : ICSharpCode.WpfDesign.XamlDom.XamlPropertyValue
return ICSharpCode.WpfDesign.XamlDom.XamlPropertyValue

CreateObject() public method

Create an XamlObject from the instance.
public CreateObject ( object instance ) : XamlObject
instance object
return XamlObject

CreatePropertyValue() public method

Create a XamlPropertyValue for the specified value instance.
public CreatePropertyValue ( object instance, ICSharpCode.WpfDesign.XamlDom.XamlProperty forProperty ) : ICSharpCode.WpfDesign.XamlDom.XamlPropertyValue
instance object
forProperty ICSharpCode.WpfDesign.XamlDom.XamlProperty
return ICSharpCode.WpfDesign.XamlDom.XamlPropertyValue

Save() public method

Saves the xaml document into the writer.
public Save ( XmlWriter writer ) : void
writer System.Xml.XmlWriter
return void