XamlXmlReader XamlXmlReader XamlXmlReader XamlXmlReader Class

Definition

Processes XAML markup from XML files by using an XmlReader intermediary, and produces a XAML node stream.

public ref class XamlXmlReader : System::Xaml::XamlReader, System::Xaml::IXamlLineInfo
public class XamlXmlReader : System.Xaml.XamlReader, System.Xaml.IXamlLineInfo
type XamlXmlReader = class
    inherit XamlReader
    interface IXamlLineInfo
Public Class XamlXmlReader
Inherits XamlReader
Implements IXamlLineInfo
Inheritance
XamlXmlReaderXamlXmlReaderXamlXmlReaderXamlXmlReader
Implements

Remarks

When you construct a XamlXmlReader, an XmlReader is required. The purpose of this design is to use established .NET Framework APIs for XML processing in order to handle stream input, to obtain a stream from a file, and so on.

XmlReader is the first component of the standard load path for XAML operations and is incorporated by XamlServices.Load as well as by several existing framework XAML implementations for loading XAML.

Constructors

XamlXmlReader(Stream) XamlXmlReader(Stream) XamlXmlReader(Stream) XamlXmlReader(Stream)

Initializes a new instance of the XamlXmlReader class, based on a stream.

XamlXmlReader(Stream, XamlSchemaContext) XamlXmlReader(Stream, XamlSchemaContext) XamlXmlReader(Stream, XamlSchemaContext) XamlXmlReader(Stream, XamlSchemaContext)

Initializes a new instance of the XamlXmlReader class, based on a stream, and using a supplied XAML schema context.

XamlXmlReader(Stream, XamlSchemaContext, XamlXmlReaderSettings) XamlXmlReader(Stream, XamlSchemaContext, XamlXmlReaderSettings) XamlXmlReader(Stream, XamlSchemaContext, XamlXmlReaderSettings) XamlXmlReader(Stream, XamlSchemaContext, XamlXmlReaderSettings)

Initializes a new instance of the XamlXmlReader class, based on a stream, with a supplied XAML schema context and XAML-specific settings.

XamlXmlReader(Stream, XamlXmlReaderSettings) XamlXmlReader(Stream, XamlXmlReaderSettings) XamlXmlReader(Stream, XamlXmlReaderSettings) XamlXmlReader(Stream, XamlXmlReaderSettings)

Initializes a new instance of the XamlXmlReader class, based on a stream, with XAML-specific settings.

XamlXmlReader(String) XamlXmlReader(String) XamlXmlReader(String) XamlXmlReader(String)

Initializes a new instance of the XamlXmlReader class, based on a file name of a file to load into a default XML reader.

XamlXmlReader(String, XamlSchemaContext) XamlXmlReader(String, XamlSchemaContext) XamlXmlReader(String, XamlSchemaContext) XamlXmlReader(String, XamlSchemaContext)

Initializes a new instance of the XamlXmlReader class, based on the file name of a file to load into a default XML reader, with a supplied XAML schema context.

XamlXmlReader(String, XamlSchemaContext, XamlXmlReaderSettings) XamlXmlReader(String, XamlSchemaContext, XamlXmlReaderSettings) XamlXmlReader(String, XamlSchemaContext, XamlXmlReaderSettings) XamlXmlReader(String, XamlSchemaContext, XamlXmlReaderSettings)

Initializes a new instance of the XamlXmlReader class, based on the file name of a file to load into a default XML reader, and using a supplied XAML schema context and XAML-specific reader settings.

XamlXmlReader(String, XamlXmlReaderSettings) XamlXmlReader(String, XamlXmlReaderSettings) XamlXmlReader(String, XamlXmlReaderSettings) XamlXmlReader(String, XamlXmlReaderSettings)

Initializes a new instance of the XamlXmlReader class, based on the file name of a file to load into a default XML reader, and using XAML-specific reader settings.

XamlXmlReader(TextReader) XamlXmlReader(TextReader) XamlXmlReader(TextReader) XamlXmlReader(TextReader)

Initializes a new instance of the XamlXmlReader class, based on a TextReader.

XamlXmlReader(TextReader, XamlSchemaContext) XamlXmlReader(TextReader, XamlSchemaContext) XamlXmlReader(TextReader, XamlSchemaContext) XamlXmlReader(TextReader, XamlSchemaContext)

Initializes a new instance of the XamlXmlReader class, based on a TextReader, with a supplied schema context and XAML-specific settings.

XamlXmlReader(TextReader, XamlSchemaContext, XamlXmlReaderSettings) XamlXmlReader(TextReader, XamlSchemaContext, XamlXmlReaderSettings) XamlXmlReader(TextReader, XamlSchemaContext, XamlXmlReaderSettings) XamlXmlReader(TextReader, XamlSchemaContext, XamlXmlReaderSettings)

Initializes a new instance of the XamlXmlReader class, based on a TextReader, and using a supplied schema context and XAML-specific settings.

XamlXmlReader(TextReader, XamlXmlReaderSettings) XamlXmlReader(TextReader, XamlXmlReaderSettings) XamlXmlReader(TextReader, XamlXmlReaderSettings) XamlXmlReader(TextReader, XamlXmlReaderSettings)

Initializes a new instance of the XamlXmlReader class, based on a TextReader, and using XAML-specific settings.

XamlXmlReader(XmlReader) XamlXmlReader(XmlReader) XamlXmlReader(XmlReader) XamlXmlReader(XmlReader)

Initializes a new instance of the XamlXmlReader class using the provided XmlReader.

XamlXmlReader(XmlReader, XamlSchemaContext) XamlXmlReader(XmlReader, XamlSchemaContext) XamlXmlReader(XmlReader, XamlSchemaContext) XamlXmlReader(XmlReader, XamlSchemaContext)

Initializes a new instance of the XamlXmlReader class using the provided XmlReader and schema context.

XamlXmlReader(XmlReader, XamlSchemaContext, XamlXmlReaderSettings) XamlXmlReader(XmlReader, XamlSchemaContext, XamlXmlReaderSettings) XamlXmlReader(XmlReader, XamlSchemaContext, XamlXmlReaderSettings) XamlXmlReader(XmlReader, XamlSchemaContext, XamlXmlReaderSettings)

Initializes a new instance of the XamlXmlReader class using the provided XmlReader, schema context, and reader settings.

XamlXmlReader(XmlReader, XamlXmlReaderSettings) XamlXmlReader(XmlReader, XamlXmlReaderSettings) XamlXmlReader(XmlReader, XamlXmlReaderSettings) XamlXmlReader(XmlReader, XamlXmlReaderSettings)

Initializes a new instance of the XamlXmlReader class, using the provided XmlReader and reader settings.

Properties

HasLineInfo HasLineInfo HasLineInfo HasLineInfo

Gets a value that specifies whether line information is available.

IsDisposed IsDisposed IsDisposed IsDisposed

Gets whether Dispose(Boolean) has been called.

(Inherited from XamlReader)
IsEof IsEof IsEof IsEof

Gets a value that reports whether the reader position in the XAML node stream is at end-of-file.

LineNumber LineNumber LineNumber LineNumber

Gets the line number to report.

LinePosition LinePosition LinePosition LinePosition

Gets the line position to report.

Member Member Member Member

Gets the current member at the reader position, if the current reader position is on a StartMember.

Namespace Namespace Namespace Namespace

Gets the XAML namespace from the current node.

NodeType NodeType NodeType NodeType

Gets the type of the current node.

SchemaContext SchemaContext SchemaContext SchemaContext

Gets an object that provides schema information for the information set.

Type Type Type Type

Gets the XamlType of the current node.

Value Value Value Value

Gets the value of the current node.

Methods

Close() Close() Close() Close()

Closes the XAML node stream.

(Inherited from XamlReader)
Dispose(Boolean) Dispose(Boolean) Dispose(Boolean) Dispose(Boolean)

Releases the unmanaged resources used by the XamlReader, and optionally, releases the managed resources.

(Inherited from XamlReader)
Equals(Object) Equals(Object) Equals(Object) Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode() GetHashCode() GetHashCode() GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType() GetType() GetType() GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
Read() Read() Read() Read()

Provides the next XAML node from the loaded source, if a XAML node is available.

ReadSubtree() ReadSubtree() ReadSubtree() ReadSubtree()

Returns a XamlReader that is based on the current XamlReader, where the returned XamlReader is used to iterate through a subtree of the XAML node structure.

(Inherited from XamlReader)
Skip() Skip() Skip() Skip()

Skips the current node and advances the reader position to the next node.

(Inherited from XamlReader)
ToString() ToString() ToString() ToString()

Returns a string that represents the current object.

(Inherited from Object)

Explicit Interface Implementations

IDisposable.Dispose() IDisposable.Dispose() IDisposable.Dispose() IDisposable.Dispose()

Releases all resources used by the current instance of the XamlReader class.

(Inherited from XamlReader)

Applies to

See also