ThemeDictionaryExtension Class

 

Implements a markup extension that enables application authors to customize control styles based on the current system theme.

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

System.Object
  System.Windows.Markup.MarkupExtension
    System.Windows.ThemeDictionaryExtension

[MarkupExtensionReturnTypeAttribute(typeof(Uri))]
public class ThemeDictionaryExtension : MarkupExtension

NameDescription
System_CAPS_pubmethodThemeDictionaryExtension()

Initializes a new instance of the ThemeDictionaryExtension class.

System_CAPS_pubmethodThemeDictionaryExtension(String)

Initializes a new instance of the ThemeDictionaryExtension class, using the specified assembly name.

NameDescription
System_CAPS_pubpropertyAssemblyName

Gets or sets a string setting a particular naming convention to identify which dictionary applies for a particular theme.

NameDescription
System_CAPS_pubmethodEquals(Object)

Determines whether the specified object is equal to the current object.(Inherited from Object.)

System_CAPS_protmethodFinalize()

Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

Serves as the default hash function. (Inherited from Object.)

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_protmethodMemberwiseClone()

Creates a shallow copy of the current Object.(Inherited from Object.)

System_CAPS_pubmethodProvideValue(IServiceProvider)

Returns an object that should be set on the property where this extension is applied. For ThemeDictionaryExtension, this is the URI value for a particular theme dictionary extension.(Overrides MarkupExtension.ProvideValue(IServiceProvider).)

System_CAPS_pubmethodToString()

Returns a string that represents the current object.(Inherited from Object.)

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

.NET Framework
Available since 3.0

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: