In This Article

AnimationSettingExtension Class

A markup extension that converts the specified AnimationSettingKind enum value to the related setting value.

public class AnimationSettingExtension
Inheritance:
object object

Constructors

AnimationSettingExtension()

Initializes an instance of the class.

public AnimationSettingExtension()

AnimationSettingExtension(AnimationSettingKind)

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

public AnimationSettingExtension(AnimationSettingKind settingKind)
Parameter Type Description
settingKind AnimationSettingKind

The AnimationSettingKind value for which an animation setting will be returned.

Properties

SettingKind

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

[ConstructorArgument("settingKind")]
public AnimationSettingKind? SettingKind { get; set; }

Property Value

AnimationSettingKind?

Methods

ProvideValue(IServiceProvider?)

Returns the setting value for the SettingKind.

public virtual 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