In This Article

ScaledCornerRadiusExtension Class

A markup extension that scales the specified expression to a Avalonia.CornerRadius value.

public class ScaledCornerRadiusExtension
Inheritance:
object object

Constructors

ScaledCornerRadiusExtension()

Initializes an instance of the class.

public ScaledCornerRadiusExtension()

ScaledCornerRadiusExtension(string?)

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

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

The string expression that specifies length factors and adjustments.

Properties

Expression

The string expression that specifies length factors and optional adjustments.

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

Property Value

string

Methods

ProvideValue(IServiceProvider?)

Returns a scaled Avalonia.CornerRadius 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