C# Class ICSharpCode.WpfDesign.XamlDom.XamlParser

Class with static methods to parse XAML files and output a XamlDocument.
Datei anzeigen Open project: icsharpcode/WpfDesigner Class Usage Examples

Public Methods

Method Description
Parse ( Stream stream ) : XamlDocument

Parses a XAML document using a stream.

Parse ( Stream stream, XamlParserSettings settings ) : XamlDocument

Parses a XAML document using a stream.

Parse ( TextReader reader ) : XamlDocument

Parses a XAML document using a TextReader.

Parse ( TextReader reader, XamlParserSettings settings ) : XamlDocument

Parses a XAML document using a TextReader.

Parse ( XmlReader reader ) : XamlDocument

Parses a XAML document using an XmlReader.

Parse ( XmlReader reader, XamlParserSettings settings ) : XamlDocument

Parses a XAML document using an XmlReader.

ParseSnippet ( XamlObject root, string xaml, XamlParserSettings settings ) : XamlObject

Method use to parse a piece of Xaml.

ParseSnippet ( XamlObject root, string xaml, XamlParserSettings settings, XamlObject parentObject ) : XamlObject

Method use to parse a piece of Xaml.

Private Methods

Method Description
CreateObjectFromAttributeText ( string valueText, Type targetType, XamlObject scope ) : object
CreateObjectFromAttributeText ( string valueText, XamlPropertyInfo targetProperty, XamlObject scope ) : object
FindAttachedProperty ( Type elementType, string propertyName ) : XamlPropertyInfo
FindExistingXamlProperty ( XamlObject obj, XamlPropertyInfo propertyInfo ) : XamlProperty
FindProperty ( object elementInstance, Type propertyType, string propertyName ) : XamlPropertyInfo
FindType ( XamlTypeFinder typeFinder, string namespaceUri, string localName ) : Type
GetAttributeNamespace ( XmlAttribute attribute ) : string
GetDefaultProperty ( Type elementType ) : XamlPropertyInfo
GetNormalizedChildNodes ( XmlElement element ) : IEnumerable
GetPropertyInfo ( XamlTypeFinder typeFinder, object elementInstance, Type elementType, string xmlNamespace, string localName, bool tryFindAllProperties = false ) : XamlPropertyInfo
GetPropertyInfo ( object elementInstance, Type elementType, XmlAttribute attribute, XamlTypeFinder typeFinder ) : XamlPropertyInfo
GetXamlSpecialProperty ( XmlAttribute attribute ) : XamlPropertyInfo
IsElementChildACollectionForProperty ( XamlTypeFinder typeFinder, XmlElement element, XamlPropertyInfo propertyInfo ) : bool
ObjectChildElementIsCollectionInstance ( XmlElement element, Type collectionType ) : bool
ObjectChildElementIsPropertyElement ( XmlElement element ) : bool
Parse ( XmlDocument document, XamlParserSettings settings ) : XamlDocument
ParseObject ( XmlElement element ) : XamlObject
ParseObjectAttribute ( XamlObject obj, XmlAttribute attribute ) : void
ParseObjectAttribute ( XamlObject obj, XmlAttribute attribute, bool real ) : void
ParseObjectChildElementAsPropertyElement ( XamlObject obj, XmlElement element, XamlPropertyInfo defaultProperty ) : void
ParseObjectContent ( XamlObject obj, XmlElement element, XamlPropertyInfo defaultProperty, XamlTextValue initializeFromTextValueInsteadOfConstructor ) : void
ParseValue ( XmlNode childNode ) : XamlPropertyValue
ParseValueCore ( XmlNode childNode ) : XamlPropertyValue
RemoveRootNamespacesFromNodeAndChildNodes ( XamlObject root, XmlNode node ) : void

Removes namespace attributes defined in the root from the specified node and all child nodes.

ReportException ( Exception x, XmlNode node ) : void
SplitQualifiedIdentifier ( string qualifiedName, string &typeName, string &propertyName ) : void
TryFindAttachedEvent ( Type elementType, string propertyName ) : XamlPropertyInfo
TryFindAttachedProperty ( Type elementType, string propertyName ) : XamlPropertyInfo
XamlParser ( ) : System

Method Details

Parse() public static method

Parses a XAML document using a stream.
public static Parse ( Stream stream ) : XamlDocument
stream Stream
return XamlDocument

Parse() public static method

Parses a XAML document using a stream.
public static Parse ( Stream stream, XamlParserSettings settings ) : XamlDocument
stream Stream
settings XamlParserSettings
return XamlDocument

Parse() public static method

Parses a XAML document using a TextReader.
public static Parse ( TextReader reader ) : XamlDocument
reader TextReader
return XamlDocument

Parse() public static method

Parses a XAML document using a TextReader.
public static Parse ( TextReader reader, XamlParserSettings settings ) : XamlDocument
reader TextReader
settings XamlParserSettings
return XamlDocument

Parse() public static method

Parses a XAML document using an XmlReader.
public static Parse ( XmlReader reader ) : XamlDocument
reader XmlReader
return XamlDocument

Parse() public static method

Parses a XAML document using an XmlReader.
public static Parse ( XmlReader reader, XamlParserSettings settings ) : XamlDocument
reader XmlReader
settings XamlParserSettings
return XamlDocument

ParseSnippet() public static method

Method use to parse a piece of Xaml.
public static ParseSnippet ( XamlObject root, string xaml, XamlParserSettings settings ) : XamlObject
root XamlObject The Root XamlObject of the current document.
xaml string The Xaml being parsed.
settings XamlParserSettings Parser settings used by .
return XamlObject

ParseSnippet() public static method

Method use to parse a piece of Xaml.
public static ParseSnippet ( XamlObject root, string xaml, XamlParserSettings settings, XamlObject parentObject ) : XamlObject
root XamlObject The Root XamlObject of the current document.
xaml string The Xaml being parsed.
settings XamlParserSettings Parser settings used by .
parentObject XamlObject Parent Object, where the Parsed snippet will be inserted (Needed for Example for Bindings).
return XamlObject