System.Windows.Markup Namespace

Provides types to support XAML. Some of these types are located in WPF assemblies and are specific to WPF scenarios that involve XAML. Other types in this namespace provide support for .NET Framework XAML Services in general, and do not require referencing WPF assemblies.

Classes

AcceptedMarkupExtensionExpressionTypeAttribute

Notates types for legacy reporting of XAML markup extension characteristics.

AmbientAttribute

Specifies that a property or type should be treated as ambient. The ambient concept relates to how XAML processors determine type owners of members.

ArrayExtension

Implements x:Array support for .NET Framework XAML Services

ComponentResourceKeyConverter

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-default constructor syntax, and that a property of the specified name supplies construction information. This information is primarily for XAML serialization.

ContentPropertyAttribute

Indicates which property of a type is the XAML content property. 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

Converts instances of String to and from instances of DateTime.

DependencyPropertyConverter

Converts from a string to a DependencyProperty object.

DependsOnAttribute

Indicates that the attributed property is dependent on the value of another property.

DesignerSerializationOptionsAttribute

Specifies the serialization flags for a property.

DictionaryKeyPropertyAttribute

Specifies a property of the associated class that provides the implicit key value. Implicit keys are used for keys rather than explicit x:Key attributes defined in XAML for an item in IDictionary collections.

EventSetterHandlerConverter

Converts the string name of an event setter handler to a delegate representation.

InternalTypeHelper

Abstract class used internally by the WPF XAML compiler to support the use of internal types.

MarkupExtension

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

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

Specifies a property of the associated class that provides the XAML namescope value.

NamespaceMapEntry

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

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

Provides context information required by a XAML parser.

PropertyDefinition

Supports a markup technique of defining properties of a class in declarative XAML.

Reference

Implements the {x:Reference} markup extension.

ResourceReferenceExpressionConverter

Converts instances of ResourceReferenceExpression to and from other types.

RootNamespaceAttribute

Represents an assembly level attribute that is used to identify the value of the RootNamespace property in a Visual Studio project file.

RoutedEventConverter

Converts a RoutedEvent object from a string.

RuntimeNamePropertyAttribute

Represents a type-level attribute that reports which property of the type maps to the XAML x:Name attribute.

ServiceProviders

Provides an implementation for the IServiceProvider interface with methods that enable adding services.

SetterTriggerConditionValueConverter

Provides type conversion analogous behavior for Setter, Trigger and Condition types that deal with DependencyProperty values. This converter only supports ConvertFrom.

StaticExtension

Implements a markup extension that returns static field and property references.

TemplateKeyConverter

Implements a type converter for TemplateKey objects, which deliberately have no type conversion pathways. The type converter enforces and reports that behavior.

TrimSurroundingWhitespaceAttribute

Indicates to XAML processors that the whitespace surrounding elements of the type in markup should be trimmed when serializing.

TypeExtension

Implements a markup extension that returns a Type based on a string input.

UidPropertyAttribute

Indicates the CLR property of a class that provides the x:Uid Directive value.

UsableDuringInitializationAttribute

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

Identifies the ValueSerializer class that a type or property should use when it is serialized.

WhitespaceSignificantCollectionAttribute

Indicates that a collection type should be processed as being whitespace significant by a XAML processor.

XamlDeferLoadAttribute

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

Provides services for XAML serialization by XAML designers or other callers that require advanced serialization.

XamlInstanceCreator

Abstract class that provides a means to store parser records for later instantiation.

XamlParseException

Represents the exception class for parser-specific exceptions from a WPF XAML parser. 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

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

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

Provides data for callbacks that are invoked when a XAML writer sets a value using a type converter call.

XamlSetValueEventArgs

Provides data for callbacks that are invoked when a XamlObjectWriter sets certain values.

XamlTypeMapper

Maps a XAML element name to the appropriate CLR Type in assemblies.

XamlWriter

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

Represents literal data that can appear as the value for a Value node.

XmlAttributeProperties

Encapsulates the XML language-related attributes of a DependencyObject.

XmlLangPropertyAttribute

Identifies the property to associate with the xml:lang attribute.

XmlLanguage

Represents a language tag for use in XAML markup.

XmlLanguageConverter

Provides type conversion for the XmlLanguage class.

XmlnsCompatibleWithAttribute

Specifies that a XAML namespace can be subsumed by another XAML namespace. Typically, the subsuming XAML namespace is indicated in a previously defined XmlnsDefinitionAttribute.

XmlnsDefinitionAttribute

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

Represents a dictionary that contains xmlns mappings for XAML namespaces in WPF.

XmlnsPrefixAttribute

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.

Interfaces

IAddChild

Provides a means to parse elements that permit mixtures of child elements or text.

IComponentConnector

Provides markup compile and tools support for named XAML elements and for attaching event handlers to them.

INameScope

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

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. Do not use for .NET Framework 4 implementations.

IStyleConnector

Provides methods used internally by the WPF XAML parser to attach events and event setters in compiled XAML.

IUriContext

Represents a service that can use application context to resolve a provided relative URI to an absolute URI.

IValueSerializerContext

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

Represents a service that resolves from named elements in XAML markup to the appropriate CLR type.

Enums

DesignerSerializationOptions

Specifies how a property is to be serialized.

XamlWriterMode

Specifies the XAML writer mode for serializing values that are expressions (such as binding declarations).

XamlWriterState

Describes possible writing states for a custom XAML writer.