Export (0) Print
Expand All

StaticExtension Class

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

Namespace: System.Windows.Markup
Assembly: PresentationFramework (in presentationframework.dll)
XML Namespace:  http://schemas.microsoft.com/winfx/2006/xaml

[MarkupExtensionReturnTypeAttribute(typeof(Object))] 
[TypeConverterAttribute(typeof(StaticExtensionConverter))] 
public ref class StaticExtension : public MarkupExtension
/** @attribute MarkupExtensionReturnTypeAttribute(System.Object) */ 
/** @attribute TypeConverterAttribute(System.Windows.Markup.StaticExtensionConverter) */ 
public class StaticExtension extends MarkupExtension
MarkupExtensionReturnTypeAttribute(System.Object) 
TypeConverterAttribute(System.Windows.Markup.StaticExtensionConverter) 
public class StaticExtension extends 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 readers 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 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0

Community Additions

ADD
Show:
© 2014 Microsoft