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 key for the ResourceKind.

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

An object that can provide services for the markup extension.

Returns

object

Inherited Members

Extension Methods