In This Article

ScaledDoubleExtension Class

A markup extension that scales the specified double value.

public class ScaledDoubleExtension
Inheritance:
object object

Constructors

ScaledDoubleExtension()

Initializes an instance of the class.

public ScaledDoubleExtension()

ScaledDoubleExtension(string?)

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

public ScaledDoubleExtension(string? expression)
Parameter Type Description
expression string

The string expression that specifies length factors and adjustments.

Properties

Expression

The string expression that specifies a factor and optional adjustment.

[ConstructorArgument("expression")]
public string? Expression { get; set; }

Property Value

string

Methods

ProvideValue(IServiceProvider?)

Returns a scaled double value, using a binding when possible.

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