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

DynamicResourceExtension Class

Implements a markup extension that supports dynamic resource references made from XAML.

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

[MarkupExtensionReturnTypeAttribute(typeof(Object))] 
[TypeConverterAttribute(typeof(DynamicResourceExtensionConverter))] 
public class DynamicResourceExtension : MarkupExtension
/** @attribute MarkupExtensionReturnTypeAttribute(System.Object) */ 
/** @attribute TypeConverterAttribute(System.Windows.DynamicResourceExtensionConverter) */ 
public class DynamicResourceExtension extends MarkupExtension
MarkupExtensionReturnTypeAttribute(System.Object) 
TypeConverterAttribute(System.Windows.DynamicResourceExtensionConverter) 
public class DynamicResourceExtension extends MarkupExtension
 For XAML information, see DynamicResource Markup Extension. 

Dynamic resource references are necessary when referencing content that might change at run-time. The reasons for the content change might be application-initiated or might be external. One example is if you are including styles that rely on system resources that report user-configured preferences, such as themes, font settings and so on.

This class is a markup extension implementation. Markup extension classes in WPF exist mainly to provide infrastructure support for some aspect of the WPF XAML reader implementation, and the members exposed by the markup extension classes are not typically called from directly user code. This class particularly supports the DynamicResource Markup Extension usage from XAML. For more information about dynamic resource references, see DynamicResource Markup Extension.

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

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.