ScaledThicknessExtension Class
A markup extension that scales the specified expression to a Avalonia.Thickness value.
public class ScaledThicknessExtension
- Inheritance:
- object object
Constructors
ScaledThicknessExtension()
Initializes an instance of the class.
public ScaledThicknessExtension()
ScaledThicknessExtension(string?)
Initializes an instance of the class, using the specified Expression value.
public ScaledThicknessExtension(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.
Methods
ProvideValue(IServiceProvider?)
Returns a scaled Avalonia.Thickness 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
- object.GetType()
- object.MemberwiseClone()
- object.ToString()
- object.Equals(object)
- object.Equals(object, object)
- object.ReferenceEquals(object, object)
- object.GetHashCode()