In This Article

ControlThemeExtension Class

A markup extension that converts the specified ControlThemeKind enum value to the related resource value.

public class ControlThemeExtension : ControlThemeKeyExtension
Inheritance:
object ResourceKeyExtensionBase<ControlThemeKind> ControlThemeKeyExtension object

Constructors

ControlThemeExtension()

Initializes an instance of the class.

public ControlThemeExtension()

ControlThemeExtension(ControlThemeKind)

Initializes an instance of the class, using the specified enum value.

public ControlThemeExtension(ControlThemeKind resourceKind)
Parameter Type Description
resourceKind ControlThemeKind

The enum value for which a resource key will be returned.

Methods

ProvideValue(IServiceProvider)

Returns the resource value for the resource.

public override object? ProvideValue(IServiceProvider serviceProvider)
Parameter Type Description
serviceProvider IServiceProvider

An object that can provide services for the markup extension.

Returns

object:

The object value to set on the property where the extension is applied.

Inherited Members

Extension Methods