This documentation is archived and is not being maintained.

StaticExtension Class

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

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

public ref class StaticExtension : public MarkupExtension
For XAML information, see x:Static Markup Extension.

You typically use static references to obtain values that exist on classes or structures that cannot be instantiated, such as static fields or properties. Common examples include fixed math values or unique keys. These values do not have to come from either the WPF assemblies or the namespace. You can map other assemblies to an XML namespace and then refer to the static values that exist on classes that exist in that assembly.

This class is a markup extension implementation. Markup extension classes exist mainly to provide infrastructure support for how WPF XAML processors interpret a particular extension. The members that markup extension implementation classes expose are not typically intended to be called from your code. This markup extension class supports the x:Static Markup Extension usage for XAML.


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 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003

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