System.Windows.Markup 命名空間

提供型別以支援 XAML。 Provides types to support XAML. 這些型別有些位於 WPF 組件中,且是涉及 XAML 的 WPF 情節特有的。 Some of these types are located in WPF assemblies and are specific to WPF scenarios that involve XAML. 一般來說,這個命名空間中的其他型別會提供 .NET Framework XAML 服務的支援,但不需參考 WPF 組件。 Other types in this namespace provide support for .NET Framework XAML Services in general, and do not require referencing WPF assemblies.

類別

AcceptedMarkupExtensionExpressionTypeAttribute

標示 XAML 標記延伸特性的舊版報告型別。Notates types for legacy reporting of XAML markup extension characteristics.

AmbientAttribute

指定屬性或型別應該視為環境屬性。Specifies that a property or type should be treated as ambient. 環境概念與 XAML 處理器如何判斷成員類別擁有者有關。The ambient concept relates to how XAML processors determine type owners of members.

ArrayExtension

實作 .NET Framework XAML 服務的 x:Array 支援。Implements x:Array support for .NET Framework XAML Services.

ComponentResourceKeyConverter

ComponentResourceKey 物件實作型別轉換子 (Type Converter),這些物件是刻意不包含任何型別轉換路徑。Implements a type converter for ComponentResourceKey objects, which deliberately have no type conversion pathways. 型別轉換子會強制執行及報告該行為。The type converter enforces and reports that behavior.

ConstructorArgumentAttribute

指定可使用非無參數建構函式語法而初始化的物件,以及所指定名稱的屬性會提供建構資訊。Specifies that an object can be initialized by using a non-parameterless constructor syntax, and that a property of the specified name supplies construction information. 這項資訊主要供 XAML 序列化之用。This information is primarily for XAML serialization.

ContentPropertyAttribute

指出類型的哪一個屬性是 XAML 內容屬性。Indicates which property of a type is the XAML content property. XAML 處理器會在處理屬性化類型之 XAML 表示的 XAML 子項目時,使用這項資訊。A XAML processor uses this information when processing XAML child elements of XAML representations of the attributed type.

ContentWrapperAttribute

在將用來包裝外部內容的相關聯集合類型上,指定一種或多種類型。Specifies one or more types on the associated collection type that will be used to wrap foreign content.

DateTimeValueSerializer

String 執行個體轉換為 DateTime 執行個體,以及反向操作。Converts instances of String to and from instances of DateTime.

DependencyPropertyConverter

從字串轉換為 DependencyProperty 物件。Converts from a string to a DependencyProperty object.

DependsOnAttribute

表示相屬性化 (Attribute) 屬性 (Property) 取決於其他屬性 (Property) 的值。Indicates that the attributed property is dependent on the value of another property.

DesignerSerializationOptionsAttribute

指定屬性的序列化 (Serialization) 旗標。Specifies the serialization flags for a property.

DictionaryKeyPropertyAttribute

指定相關聯類別的屬性,這個屬性會提供隱含索引鍵值。Specifies a property of the associated class that provides the implicit key value. 隱含索引鍵會用來做為索引鍵,而不是做為定義於 IDictionary 集合項目之 XAML 中的隱含 x:Key 屬性。Implicit keys are used for keys rather than explicit x:Key attributes defined in XAML for an item in IDictionary collections.

EventSetterHandlerConverter

將事件 Setter 處理常式的字串名稱轉換為委派表示。Converts the string name of an event setter handler to a delegate representation.

InternalTypeHelper

WPF XAML 編譯器 (Compiler) 在內部使用抽象類別 (Abstract Class) 來支援使用內部型別。Abstract class used internally by the WPF XAML compiler to support the use of internal types.

MarkupExtension

為 .NET Framework XAML 服務及其他 XAML 讀取器和 XAML 寫入器可支援的 XAML 標記延伸實作,提供基底類別。Provides a base class for XAML markup extension implementations that can be supported by .NET Framework XAML Services and other XAML readers and XAML writers.

MarkupExtensionBracketCharactersAttribute

回報標記延伸可傳回的括弧字元。Reports the bracket characters that a markup extension can return.

MarkupExtensionReturnTypeAttribute

報告標記延伸可以傳回的型別。Reports the type that a markup extension can return.

MemberDefinition

提供可在宣告式 XAML 中定義類別成員之標記技術所使用的基底類別。Provides the base class that is used for a markup technique of defining members of a class in declarative XAML.

NameReferenceConverter

提供型別轉換,以將字串名稱轉換為具有該名稱之物件的物件參考,或是從物件圖形傳回物件的名稱。Provides type conversion to convert a string name into an object reference to the object with that name, or to return the name of an object from the object graph.

NameScopePropertyAttribute

指定相關聯類別的屬性,這個屬性會提供 XAML 名稱範圍值。Specifies a property of the associated class that provides the XAML namescope value.

NamespaceMapEntry

提供資訊,XamlTypeMapper 會用來在 XML 命名空間、CLR 命名空間,以及包含該 CLR 命名空間之相關型別的組件之間進行對應。Provides information that the XamlTypeMapper uses for mapping between an XML namespace, a CLR namespace, and the assembly that contains the relevant types for that CLR namespace.

NullExtension

實作 XAML 標記延伸以傳回 null 物件,您可以使用這個物件,在 XAML 中將值明確設定為 null。Implements a XAML markup extension in order to return a null object, which you can use to explicitly set values to null in XAML.

ParserContext

提供 XAML 剖析器 (Parser) 所需的內容資訊。Provides context information required by a XAML parser.

PropertyDefinition

支援可在宣告式 XAML 中定義類別屬性的標記技術。Supports a markup technique of defining properties of a class in declarative XAML.

Reference

實作 {x:Reference} 標記延伸。Implements the {x:Reference} markup extension.

ResourceReferenceExpressionConverter

ResourceReferenceExpression 執行個體 (Instance) 來回轉換成其他型別。Converts instances of ResourceReferenceExpression to and from other types.

RootNamespaceAttribute

表示組件層級屬性,用來識別 Visual Studio 專案檔的 RootNamespace 屬性值。Represents an assembly level attribute that is used to identify the value of the RootNamespace property in a Visual Studio project file.

RoutedEventConverter

RoutedEvent 物件從字串進行轉換。Converts a RoutedEvent object from a string.

RuntimeNamePropertyAttribute

代表類型層級屬性,該屬性報告此類型中哪個屬性對應到 XAML x:Name 屬性Represents a type-level attribute that reports which property of the type maps to the XAML x:Name attribute.

ServiceProviders

提供 IServiceProvider 介面的實作,其方法可啟用加入服務。Provides an implementation for the IServiceProvider interface with methods that enable adding services.

SetterTriggerConditionValueConverter

針對處理 Setter 值的 Trigger, ConditionDependencyProperty 型別提供型別轉換類比行為。Provides type conversion analogous behavior for Setter, Trigger and Condition types that deal with DependencyProperty values. 此轉換器僅支援 ConvertFromThis converter only supports ConvertFrom.

StaticExtension

實作標記延伸,這個標記延伸會傳回靜態欄位及屬性參考。Implements a markup extension that returns static field and property references.

TemplateKeyConverter

TemplateKey 物件實作型別轉換子 (Type Converter),這些物件是刻意不包含任何型別轉換路徑。Implements a type converter for TemplateKey objects, which deliberately have no type conversion pathways. 型別轉換子會強制執行及報告該行為。The type converter enforces and reports that behavior.

TrimSurroundingWhitespaceAttribute

指定 XAML 處理器在進行序列化時,必須修剪標記中型別之項目周圍的空白。Indicates to XAML processors that the whitespace surrounding elements of the type in markup should be trimmed when serializing.

TypeExtension

實作標記延伸,這個標記延伸會根據字串輸入傳回 TypeImplements a markup extension that returns a Type based on a string input.

UidPropertyAttribute

指出提供 x:Uid 指示詞值之類別的 CLR 屬性。Indicates the CLR property of a class that provides the x:Uid Directive value.

UsableDuringInitializationAttribute

表示這個類型是否在 XAML 物件圖形建立期間由上而下建置。Indicates whether this type is built top-down during XAML object graph creation.

ValueSerializer

抽象類別,會定義從物件表示進行序列化的轉換行為。Abstract class that defines conversion behavior for serialization from an object representation.

ValueSerializerAttribute

識別 ValueSerializer 類別,當型別或屬性在序列化時,必須使用這個類別。Identifies the ValueSerializer class that a type or property should use when it is serialized.

WhitespaceSignificantCollectionAttribute

表示應該由 XAML 處理器來處理成未預期之空白字元的集合型別。Indicates that a collection type should be processed as being whitespace significant by a XAML processor.

XamlDeferLoadAttribute

表示類別或屬性具有 XAML 的延後載入使用方式 (例如,範本行為),並報告啟用延後行為的類別及其目的型別/內容型別。Indicates that a class or property has a deferred load usage for XAML (such as a template behavior), and reports the class that enables the deferring behavior and its destination/content type.

XamlDesignerSerializationManager

由 XAML 設計工具或其他需要進階序列化的呼叫端為 XAML 序列化提供服務。Provides services for XAML serialization by XAML designers or other callers that require advanced serialization.

XamlInstanceCreator

提供儲存稍後具現化之剖析器 (Parser) 資料錄方式的抽象類別 (Abstract Class)。Abstract class that provides a means to store parser records for later instantiation.

XamlParseException

表示來自 WPF XAML 剖析器之剖析器特有例外狀況的例外狀況類別。Represents the exception class for parser-specific exceptions from a WPF XAML parser. 這個例外狀況用於 .NET Framework 3.0 和 .NET Framework 3.5 中的 XAML API 或 WPF XAML 剖析器作業,或特別供 WPF XAML 剖析器在呼叫 XamlReader API 時使用。This exception is used in XAML API or WPF XAML parser operations from .NET Framework 3.0 and .NET Framework 3.5, or for specific use of the WPF XAML parser by calling XamlReader API.

XamlReader

使用 WPF 預設 XAML 讀取器和相關聯的 XAML 物件寫入器,讀取 XAML 輸入並建立物件圖形。Reads XAML input and creates an object graph, using the WPF default XAML reader and an associated XAML object writer.

XamlSetMarkupExtensionAttribute

表示類別可以使用標記延伸來提供值,以及參考要用於標記延伸設定作業的處理常式。Indicates that a class can use a markup extension to provide a value, and references a handler to use for markup extension set operations.

XamlSetMarkupExtensionEventArgs

提供資料給回呼,該回呼會在 XAML 物件寫入器使用標記延伸來設定值時叫用。Provides data for callbacks that are invoked when a XAML object writer sets a value using a markup extension.

XamlSetTypeConverterAttribute

指出類別可以使用型別轉換子來提供值,以及參考要用於型別轉換子設定情況的處理常式。Indicates that a class can use a type converter to provide a value, and references a handler to use for type converter setting cases.

XamlSetTypeConverterEventArgs

提供資料給回呼,該回呼會在 XAML 寫入器使用型別轉換子呼叫來設定值時叫用。Provides data for callbacks that are invoked when a XAML writer sets a value using a type converter call.

XamlSetValueEventArgs

提供資料給回呼,該回呼會在 XamlObjectWriter 設定某些值時叫用。Provides data for callbacks that are invoked when a XamlObjectWriter sets certain values.

XamlTypeMapper

將 XAML 項目名稱對應至組件中適當的 CLR TypeMaps a XAML element name to the appropriate CLR Type in assemblies.

XamlWriter

提供單一靜態的 Save 方法 (多重多載),該方法可用於受限制的 XAML 序列化 (Serialization),將提供的執行階段物件序列化為 XAML 標記。Provides a single static Save method (multiple overloads) that can be used for limited XAML serialization of provided run-time objects into XAML markup.

XData

表示可以顯示為 Value 節點值的常值資料。Represents literal data that can appear as the value for a Value node.

XmlAttributeProperties

封裝 DependencyObject 之 XML 語言相關的屬性。Encapsulates the XML language-related attributes of a DependencyObject.

XmlLangPropertyAttribute

識別要與 xml:lang 屬性 (Attribute) 產生關聯的屬性 (Property)。Identifies the property to associate with the xml:lang attribute.

XmlLanguage

表示在 XAML 標記 (Markup) 中使用的語言標記 (Tag)。Represents a language tag for use in XAML markup.

XmlLanguageConverter

提供 XmlLanguage 類別 (Class) 的型別轉換。Provides type conversion for the XmlLanguage class.

XmlnsCompatibleWithAttribute

指定某個 XAML 命名空間可以由另一個 XAML 命名空間來歸類。Specifies that a XAML namespace can be subsumed by another XAML namespace. 一般會在預先定義的 XmlnsDefinitionAttribute 中指出建立小計的 XAML 命名空間。Typically, the subsuming XAML namespace is indicated in a previously defined XmlnsDefinitionAttribute.

XmlnsDefinitionAttribute

指定 XAML 命名空間和 CLR 命名空間之間以每個組件為基礎的對應,然後讓 XAML 物件寫入器或 XAML 結構描述內容用於類型解析。Specifies a mapping on a per-assembly basis between a XAML namespace and a CLR namespace, which is then used for type resolution by a XAML object writer or XAML schema context.

XmlnsDictionary

表示包含 WPF 中 XAML 命名空間之 xmlns 對應的字典。Represents a dictionary that contains xmlns mappings for XAML namespaces in WPF.

XmlnsPrefixAttribute

識別在 XAML 檔案中撰寫項目和屬性時 (序列化),或與具有 XAML 編輯功能的設計環境互動時,要與 XAML 使用方式的 XAML 命名空間產生關聯的建議前置詞。Identifies a recommended prefix to associate with a XAML namespace for XAML usage, when writing elements and attributes in a XAML file (serialization) or when interacting with a design environment that has XAML editing features.

介面

IAddChild

提供一種方法,以剖析允許子項目或文字混合的項目。Provides a means to parse elements that permit mixtures of child elements or text.

IComponentConnector

對具名 XAML 項目提供標記編譯及工具支援,以便將事件處理常式附加至這些項目。Provides markup compile and tools support for named XAML elements and for attaching event handlers to them.

INameScope

定義以下情況的合約:在特定 XAML 名稱範圍中存取項目名稱的方式,以及在該 XAML 名稱範圍中強制執行名稱唯一性的方式。Defines a contract for how names of elements should be accessed within a particular XAML namescope, and how to enforce uniqueness of names within that XAML namescope.

INameScopeDictionary

整合可列舉型別、集合和字典支援,這些支援在 XAML 名稱範圍中公開名稱的字典時十分有用。Unifies enumerable, collection, and dictionary support that are useful for exposing a dictionary of names in a XAML namescope.

IProvideValueTarget

表示可報告情境式物件-屬性關聯性來評估標記延伸的服務。Represents a service that reports situational object-property relationships for markup extension evaluation.

IQueryAmbient

查詢是否應該將指定的屬性視為目前範圍中的環境屬性。Queries for whether a specified property should be treated as ambient in the current scope.

IReceiveMarkupExtension

提供型別可以宣告它們能夠接受來自標記延伸運算式 (或其他類別) 的一種機制,其中輸出會是有別於目標屬性的另一種屬性。Provides a mechanism whereby types can declare that they can receive an expression (or another class) from a markup extension, where the output is a different property type than the target property. 請勿用於 .NET Framework 4 實作。Do not use for .NET Framework 4 implementations.

IStyleConnector

提供由 WPF XAML 剖析器 (Parser) 在內部使用的方法,在已編譯的 XAML 中附加事件和事件 Setter。Provides methods used internally by the WPF XAML parser to attach events and event setters in compiled XAML.

IUriContext

表示可以使用應用程式內容來解析所提供相對 URI 為絕對 URI 的服務。Represents a service that can use application context to resolve a provided relative URI to an absolute URI.

IValueSerializerContext

定義提供給 ValueSerializer 的內容。Defines a context that is provided to a ValueSerializer. 此內容可用於啟用序列化的特殊狀況或序列化的不同模式。The context can be used to enable special cases of serialization or different modes of serialization.

IXamlTypeResolver

表示可將 XAML 標記中的具名項目解析為適當 CLR 型別的服務。Represents a service that resolves from named elements in XAML markup to the appropriate CLR type.

列舉

DesignerSerializationOptions

指定要序列化屬性的方式。Specifies how a property is to be serialized.

XamlWriterMode

指定用來序列化本身是運算式 (例如繫結宣告) 之值的 XAML 寫入器模式。Specifies the XAML writer mode for serializing values that are expressions (such as binding declarations).

XamlWriterState

說明自訂 XAML 寫入器的可能寫入狀態。Describes possible writing states for a custom XAML writer.