In This Article

ScaledGridLengthExtension Class

A markup extension that scales the specified Avalonia.Controls.GridLength value.

public class ScaledGridLengthExtension
Inheritance:
object object

Constructors

ScaledGridLengthExtension()

Initializes an instance of the class.

public ScaledGridLengthExtension()

ScaledGridLengthExtension(string?)

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

public ScaledGridLengthExtension(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 Avalonia.Controls.GridLength 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