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

StaticResourceExtension Class

Implements a markup extension that supports static (load time) resource references made from XAML.

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

[LocalizabilityAttribute(LocalizationCategory.NeverLocalize)] 
[MarkupExtensionReturnTypeAttribute(typeof(Object))] 
public class StaticResourceExtension : MarkupExtension
/** @attribute LocalizabilityAttribute(LocalizationCategory.NeverLocalize) */ 
/** @attribute MarkupExtensionReturnTypeAttribute(System.Object) */ 
public class StaticResourceExtension extends MarkupExtension
LocalizabilityAttribute(LocalizationCategory.NeverLocalize) 
MarkupExtensionReturnTypeAttribute(System.Object) 
public class StaticResourceExtension extends MarkupExtension
 For XAML information, see StaticResource Markup Extension. 

Static resource references are generally used whenever a DynamicResource Markup Extension is not explicitly necessary.

This class is a markup extension implementation. Markup extension classes exist mainly to provide infrastructure support for some aspect of the WPF XAML reader implementation, and the members exposed by a markup extension are not typically called from user code. This extension supports the StaticResource Markup Extension usage from XAML.

System.Object
   System.Windows.Markup.MarkupExtension
    System.Windows.StaticResourceExtension
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. All rights reserved.