Table of Contents

Class ScaleTransform

Namespace
Avalonia.Media
Assembly
Avalonia.Base.dll

Scale an Visual.

public sealed class ScaleTransform : Transform, INotifyPropertyChanged, IMutableTransform, ITransform
Inheritance
ScaleTransform
Implements
Inherited Members
Extension Methods

Constructors

ScaleTransform()

Initializes a new instance of the ScaleTransform class.

public ScaleTransform()

ScaleTransform(double, double)

Initializes a new instance of the ScaleTransform class.

public ScaleTransform(double scaleX, double scaleY)

Parameters

scaleX double

ScaleX

scaleY double

ScaleY

Fields

ScaleXProperty

Defines the ScaleX property.

public static readonly StyledProperty<double> ScaleXProperty

Field Value

StyledProperty<double>

ScaleYProperty

Defines the ScaleY property.

public static readonly StyledProperty<double> ScaleYProperty

Field Value

StyledProperty<double>

Properties

ScaleX

Gets or sets the ScaleX property.

public double ScaleX { get; set; }

Property Value

double

ScaleY

Gets or sets the ScaleY property.

public double ScaleY { get; set; }

Property Value

double

Value

Gets the transform's Matrix.

public override Matrix Value { get; }

Property Value

Matrix

Methods

OnPropertyChanged(AvaloniaPropertyChangedEventArgs)

Called when a avalonia property changes on the object.

protected override void OnPropertyChanged(AvaloniaPropertyChangedEventArgs change)

Parameters

change AvaloniaPropertyChangedEventArgs

The property change details.