C# Класс ICSharpCode.WpfDesign.XamlDom.XamlDocument

Represents a .xaml document.
Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание
GetNamespaceFor string
GetNamespacesFor List
GetPrefixForNamespace string
GetTypeDescriptorContext ITypeDescriptorContext
IsNativeType bool
ParseComplete void
XamlDocument System
XamlDocument System

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
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.

Описание методов

CreateNullValue() публичный Метод

Creates a value that represents {x:Null}
public CreateNullValue ( ) : ICSharpCode.WpfDesign.XamlDom.XamlPropertyValue
Результат ICSharpCode.WpfDesign.XamlDom.XamlPropertyValue

CreateObject() публичный Метод

Create an XamlObject from the instance.
public CreateObject ( object instance ) : XamlObject
instance object
Результат XamlObject

CreatePropertyValue() публичный Метод

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
Результат ICSharpCode.WpfDesign.XamlDom.XamlPropertyValue

Save() публичный Метод

Saves the xaml document into the writer.
public Save ( XmlWriter writer ) : void
writer System.Xml.XmlWriter
Результат void