Click to Rate and Give Feedback
MSDN
MSDN Library
.NET Development
.NET Framework 3.5
This page is specific to
Microsoft Visual Studio 2008/.NET Framework 3.5

Other versions are also available for the following:
.NET Framework Class Library
MarkupExtension Class

Updated: November 2007

Provides a base class for all XAML markup extensions.

Namespace:  System.Windows.Markup
Assembly:  WindowsBase (in WindowsBase.dll)

Visual Basic (Declaration)
Public MustInherit Class MarkupExtension
Visual Basic (Usage)
Dim instance As MarkupExtension
C#
public abstract class MarkupExtension
Visual C++
public ref class MarkupExtension abstract
J#
public abstract class MarkupExtension
JScript
public abstract class MarkupExtension
XAML
This class is abstract; see Inheritance Hierarchy for derived non-abstract classes usable in XAML.

Markup extensions return objects based on string attribute values or markup elements in XAML. Markup extensions return objects in a more sophisticated way than type converters alone can accomplish. In particular, the ProvideValue method of each extension can use an IServiceProvider at runtime that can provide context. This IServiceProvider is then queried for specific services that pass information, such as IProvideValueTarget or IXamlTypeResolver.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Windows Vista

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.5, 3.0
Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2008 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker