C# Class ICSharpCode.WpfDesign.XamlDom.XamlDocument

Represents a .xaml document.
Afficher le fichier Open project: icsharpcode/WpfDesigner Class Usage Examples

Private Properties

Свойство Type Description
GetNamespaceFor string
GetNamespacesFor List
GetPrefixForNamespace string
GetTypeDescriptorContext ITypeDescriptorContext
IsNativeType bool
ParseComplete void
XamlDocument System
XamlDocument System

Méthodes publiques

Méthode 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

Méthode 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 méthode

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

CreateObject() public méthode

Create an XamlObject from the instance.
public CreateObject ( object instance ) : XamlObject
instance object
Résultat XamlObject

CreatePropertyValue() public méthode

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
Résultat ICSharpCode.WpfDesign.XamlDom.XamlPropertyValue

Save() public méthode

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