System.Xaml 命名空间

提供与 XAML 读取器和 XAML 编写器相关的类型。 Provides types that relate to XAML readers and XAML writers. 这包括 .NET Framework XAML 服务及其 XAML 读取器和 XAML 编写器的默认实现。 This includes the default implementations of .NET Framework XAML Services and its XAML readers and XAML writers. 另外还包含与 XAML 类型系统有关的类型以及其他与 XAML 和 .NET Framework XAML 服务概念有关的支持类型。 Also contains types relevant to the XAML type system and other support types related to XAML and .NET Framework XAML Services concepts.

AmbientPropertyValue

报告有关环境属性的信息,作为 IAmbientProvider 实现的一部分。Reports information about an ambient property, as part of an IAmbientProvider implementation.

AttachableMemberIdentifier

为可附加成员提供 XAML 类型系统标识符表示形式。Provides a XAML type system identifier representation for attachable members. 标识符结构与 declaringType.memberName 字符串形式并列,便于使用可附加成员。The identifier structure parallels the declaringType.memberName string form for attachable member usage.

AttachablePropertyServices

提供一些静态帮助器方法,这些方法用于从可附加属性中获取值和访问器方法信息,并且和附加的属性存储一起工作。Provides static helper methods that obtain values and accessor method information from an attachable property and that work with an attached property store.

NamespaceDeclaration

为 XAML 命名空间声明标识符和前缀,方法是将这些字符串值存储为单独的属性。Declares the identifier and the prefix of a XAML namespace by storing these string values as separate properties.

XamlBackgroundReader

实现一个双缓存 XamlReader,它可将读取和写入拆分为不同的线程。Implements a double-buffered XamlReader that can split reading and writing to different threads.

XamlDeferringLoader

表示加载和返回延迟内容的 XAML 读取器行为。Represents a XAML reader behavior that loads and returns deferred content.

XamlDirective

在成员兼作 XAML 指令时为成员提供 XAML 类型系统标识符。Provides the XAML type system identifier for a member if the member is also a XAML directive. 在处理成员节点的过程中,XAML 读取器和 XAML 编写器使用 XamlDirective 标识符。XAML readers and XAML writers use the XamlDirective identifier during processing of member nodes. 如果读取器位于 StartMember 上,而且 IsDirectivetrue,则使用此标识符。The identifier is used when the XAML reader is positioned on a StartMember and IsDirective is true.

XamlDuplicateMemberException

在 XAML 编写器尝试将重复成员的值写入同一对象节点时所引发的异常。The exception that is thrown when a XAML writer attempts to write a value for a duplicate member into the same object node.

XamlException

针对一般 XAML 读取器或 XAML 编写器异常引发的异常。The exception that is thrown for a general XAML reader or XAML writer exception.

XamlInternalException

针对在 XAML 读取和 XAML 写入过程中出现内部不一致所引发的异常。The exception that is thrown for internal inconsistencies that occur during XAML reading and XAML writing.

XamlLanguage

定义一些提供字符串或对象的常量,这些字符串或对象对于 XAML 标记或使用 XAML 类型进行的编程非常有用。Defines constants that provide strings or objects that are useful for XAML markup or for programming with XAML types. 这些字符串或对象与 XAML 语言概念和/或 .NET Framework XAML 中 XAML 语言概念的实现有关。These strings or objects are relevant to XAML language concepts, to the implementation of XAML language concepts in .NET Framework XAML Services, or to both.

XamlMember

为 XAML 类型的成员提供 XAML 类型系统标识符。Provides the XAML type system identifier for members of XAML types. 该标识符由 XAML 读取器和 XAML 编写器在处理成员节点的过程中使用(如果 XAML 读取器位于 StartMember 上),另外还用于常规 XAML 类型系统逻辑。The identifier is used by XAML readers and XAML writers during processing of member nodes (when the XAML reader is positioned on a StartMember) and also for general XAML type system logic.

XamlNodeList

为诸如采用延迟方式编写 XAML 节点等方案提供 XAML 节点的列表。Provides a list of XAML nodes, which can be used for scenarios such as writing XAML nodes in a deferred manner.

XamlNodeQueue

提供用于写入节点和再次读取节点的缓冲区。Provides a buffer for writing nodes and reading them again.

XamlObjectEventArgs

为可插入序列以实现对象初始化和属性设置的回调提供数据。Provides data for callbacks that can be inserted in the sequence for object initialization and property setting. 这会影响 XamlObjectWriter 生成的对象图。This influences the object graph that is produced by XamlObjectWriter.

XamlObjectReader

提供一个 XamlReader 实现,该实现读取对象图并生成 XAML 节点流。Provides a XamlReader implementation that reads object graphs and generates a XAML node stream.

XamlObjectReaderException

由若干 XamlObjectReader 内部帮助器 API 引发的异常。The exception that is thrown by several XamlObjectReader internal helper APIs.

XamlObjectReaderSettings

XamlObjectReader 指定处理规则或选项设置。Specifies processing rules or option settings for a XamlObjectReader.

XamlObjectWriter

从源 XAML 节点流创建对象图。Creates an object graph from a source XAML node stream.

XamlObjectWriterException

当 XAML 编写器(例如 XamlObjectWriter 类)在尝试从 XAML 节点流生成对象图的同时遇到错误时所引发的异常。The exception that is thrown when a XAML writer (such as the XamlObjectWriter class) encounters an error while attempting to produce object graphs from a XAML node stream.

XamlObjectWriterSettings

XamlObjectWriter 提供特定 XAML 编写器设置。Provides specific XAML writer settings for XamlObjectWriter.

XamlParseException

在 XAML 读取器无法将 XAML 读取器源的元素处理为 XAML 节点流时引发的异常。The exception that is thrown when a XAML reader cannot process elements of the XAML reader source into a XAML node stream.

XamlReader

为使用 XAML 输入并生成 XAML 节点流的类提供基定义。Provides base definitions for classes that consume XAML input and produce XAML node streams.

XamlReaderSettings

XamlReader 实现指定处理规则或选项设置。Specifies processing rules or option settings for a XamlReader implementation.

XamlSchemaContext

定义一个可重用上下文,用于解释或映射 XAML 类型以及为这些类型提供支持的程序集中的类型。Defines a reusable context for interpreting or mapping XAML types, and the types in the assemblies that underlie them.

XamlSchemaContextSettings

XamlSchemaContext 提供可选设置。Provides optional settings for a XamlSchemaContext.

XamlSchemaException

在绑定系统或 XAML 的其他架构表示形式系统报告架构上下文出现异常时所引发的异常。The exception that is thrown when a binding system or another schema representation system for XAML reports an exception to the schema context.

XamlServices

提供适用于常见 XAML 任务(读取 XAML 和写入对象图,或者读取对象图并为序列化目的而写入 XAML 文件输出)的更高级别服务(静态方法)。Provides higher-level services (static methods) for the common XAML tasks of reading XAML and writing an object graph; or reading an object graph and writing XAML file output for serialization purposes.

XamlType

报告作为整体 XAML 系统(在 .NET Framework XAML 服务中实现)的一部分的 XAML 类型相关信息。Reports information about XAML types as part of the overall XAML system that is implemented in .NET Framework XAML Services.

XamlWriter

为 XAML 编写器提供默认实现和基类定义。Provides default implementation and base class definitions for a XAML writer. 这不是工作默认 XAML 编写器;您必须从 XamlWriter 派生并实现其抽象成员,或者使用现有的 XamlWriter 派生类。This is not a working default XAML writer; you must either derive from XamlWriter and implement its abstract members, or use an existing XamlWriter derived class.

XamlWriterSettings

XamlWriter 实现提供初始化设置。Provides initialization settings for a XamlWriter implementation.

XamlXmlReader

使用 XmlReader 中介处理 XML 文件中的 XAML 标记,并生成 XAML 节点流。Processes XAML markup from XML files by using an XmlReader intermediary, and produces a XAML node stream.

XamlXmlReaderSettings

XamlXmlReader XAML 读取器实现指定处理规则或选项设置。Specifies processing rules or option settings for the XamlXmlReader XAML reader implementation.

XamlXmlWriter

使用 TextWriterXmlWriter 支持类将 XAML 节点流写入文本或标记序列化形式。Uses a TextWriter or XmlWriter support class to write a XAML node stream to a text or markup serialized form.

XamlXmlWriterException

由某些 XamlXmlWriter API 引发的异常。The exception that is thrown by certain XamlXmlWriter APIs.

XamlXmlWriterSettings

XamlXmlWriter XAML 编写器实现提供初始化设置。Provides initialization settings for the XamlXmlWriter XAML writer implementation.

接口

IAmbientProvider

返回一个服务,该服务可将有关环境属性或环境类型的信息项返回到类型转换器和标记扩展。Represents a service that can return information items about ambient properties or ambient types to type converters and markup extensions.

IAttachedPropertyStore

表示设置了可附加成员的对象的可附加成员存储。Represents an attachable member store for an object where attachable members are set. 随后可使用 AttachablePropertyServices 引用此可附加成员存储。This attachable member store can then be referenced with AttachablePropertyServices.

IDestinationTypeProvider

表示一个服务,该服务可返回目标类型的 CLR 类型系统标识符。Represents a service that can return a CLR type system identifier for the destination type. 与目标类型相关的情况是属性设置操作的目标类型由反射或其他机制间接报告。The destination type is relevant when the destination type for a property-setting operation is indirectly reported by reflection or other mechanisms.

INamespacePrefixLookup

表示一个服务,该服务可为到使用者的 XAML 命名空间映射返回建议的前缀。Represents a service that can return the recommended prefix for a XAML namespace mapping to consumers. 使用者可以包括设计环境或序列化程序。Consumers might include design environments or serializers.

IRootObjectProvider

描述一个服务,该服务可返回所分析标记的根对象。Describes a service that can return the root object of markup being parsed.

IXamlIndexingReader

提供一个服务,该服务表示基于节点的 XAML 读取器的简单实现的索引节点控件。Provides a service that represents indexed node control for a simple implementation of a node-based XAML reader.

IXamlLineInfo

描述用于在 XAML 读取器实现中报告文本行信息的服务。Describes a service for reporting text line information in XAML reader implementations.

IXamlLineInfoConsumer

描述一个服务,在该服务中,XAML 编写器可以使用报告的行信息,然后将该信息包括在输出中。Describes a service where a XAML writer can use reported line information and then include the information in the output.

IXamlNameProvider

提供一个服务,该服务用于在保存和写入操作过程中输入对象,并返回 XAML 名称。Provides a service that is used during save and write operations to input an object and return a XAML name.

IXamlNameResolver

描述可返回 XAML 名称所指定对象的服务,或者返回推迟名称解析的标记。Describes a service that can return objects that are specified by XAML name, or alternatively, returns a token that defers name resolution. 该服务还可返回 XAML 名称范围中所有命名对象的可枚举集合。The service can also return an enumerable set of all named objects that are in the XAML namescope.

IXamlNamespaceResolver

描述一个服务,该服务可按照 XAML 标记中映射的方式基于 XAML 命名空间的前缀返回该命名空间。Describes a service that can return a XAML namespace that is based on its prefix as it is mapped in XAML markup.

IXamlObjectWriterFactory

表示一个服务,该服务基于当前的内部分析器上下文生成 XamlObjectWriterRepresents a service that generates a XamlObjectWriter that is based on the current internal parser context.

IXamlSchemaContextProvider

表示一个服务,该服务为类型转换器和标记扩展提供 XAML 架构上下文信息。Represents a service that provides XAML schema context information to type converters and markup extensions.

枚举

XamlNodeType

描述 XAML 读取器当前正在处理的节点的类型。Describes the type of the node that is currently being processed by a XAML reader.