Table of Contents

Class ExperimentalAcrylicMaterial

Namespace
Avalonia.Media
Assembly
Avalonia.Base.dll
public class ExperimentalAcrylicMaterial : AvaloniaObject, INotifyPropertyChanged, IMutableExperimentalAcrylicMaterial, IExperimentalAcrylicMaterial
Inheritance
ExperimentalAcrylicMaterial
Implements
Inherited Members
Extension Methods

Constructors

ExperimentalAcrylicMaterial()

public ExperimentalAcrylicMaterial()

Fields

BackgroundSourceProperty

Defines the BackgroundSource property.

public static readonly StyledProperty<AcrylicBackgroundSource> BackgroundSourceProperty

Field Value

StyledProperty<AcrylicBackgroundSource>

FallbackColorProperty

Defines the FallbackColor property.

public static readonly StyledProperty<Color> FallbackColorProperty

Field Value

StyledProperty<Color>

MaterialOpacityProperty

Defines the MaterialOpacity property.

public static readonly StyledProperty<double> MaterialOpacityProperty

Field Value

StyledProperty<double>

PlatformTransparencyCompensationLevelProperty

public static readonly StyledProperty<double> PlatformTransparencyCompensationLevelProperty

Field Value

StyledProperty<double>

TintColorProperty

Defines the TintColor property.

public static readonly StyledProperty<Color> TintColorProperty

Field Value

StyledProperty<Color>

TintOpacityProperty

Defines the TintOpacity property.

public static readonly StyledProperty<double> TintOpacityProperty

Field Value

StyledProperty<double>

Properties

BackgroundSource

Gets or Sets the BackgroundSource AcrylicBackgroundSource.

public AcrylicBackgroundSource BackgroundSource { get; set; }

Property Value

AcrylicBackgroundSource

FallbackColor

Gets or Sets the Fallback Color. This is used on rendering plaforms that dont support acrylic.

public Color FallbackColor { get; set; }

Property Value

Color

MaterialOpacity

Gets or Sets the MaterialOpacity. This makes the material more or less opaque.

public double MaterialOpacity { get; set; }

Property Value

double

PlatformTransparencyCompensationLevel

Gets or Sets the PlatformTransparencyCompensationLevel. This value defines the minimum MaterialOpacity that can be used. It means material opacity is re-scaled from this value to 1.

public double PlatformTransparencyCompensationLevel { get; set; }

Property Value

double

TintColor

Gets or Sets the TintColor.

public Color TintColor { get; set; }

Property Value

Color

TintOpacity

Gets or Sets the Tint Opacity.

public double TintOpacity { get; set; }

Property Value

double

Methods

AffectsRender<T>(params AvaloniaProperty[])

Marks a property as affecting the brush's visual representation.

protected static void AffectsRender<T>(params AvaloniaProperty[] properties) where T : ExperimentalAcrylicMaterial

Parameters

properties AvaloniaProperty[]

The properties.

Type Parameters

T

Remarks

After a call to this method in a brush's static constructor, any change to the property will cause the Invalidated event to be raised on the brush.

RaiseInvalidated(EventArgs)

Raises the Invalidated event.

protected void RaiseInvalidated(EventArgs e)

Parameters

e EventArgs

The event args.

ToImmutable()

Creates an immutable clone of the brush.

public IExperimentalAcrylicMaterial ToImmutable()

Returns

IExperimentalAcrylicMaterial

The immutable clone.

Events

Invalidated

public event EventHandler? Invalidated

Event Type

EventHandler