Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

StaticExtension Class

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

Namespace:  System.Windows.Markup
Assembly:  PresentationFramework (in PresentationFramework.dll)
XMLNS for XAML: http://schemas.microsoft.com/winfx/2006/xaml
[MarkupExtensionReturnTypeAttribute(typeof(Object))]
public class StaticExtension : 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 http://schemas.microsoft.com/winfx/2006/xaml/presentation 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.

System.Object
  System.Windows.Markup.MarkupExtension
    System.Windows.Markup.StaticExtension
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
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.