Class ExperimentalAcrylicMaterial
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
FallbackColorProperty
Defines the FallbackColor property.
public static readonly StyledProperty<Color> FallbackColorProperty
Field Value
MaterialOpacityProperty
Defines the MaterialOpacity property.
public static readonly StyledProperty<double> MaterialOpacityProperty
Field Value
PlatformTransparencyCompensationLevelProperty
Defines the PlatformTransparencyCompensationLevel property.
public static readonly StyledProperty<double> PlatformTransparencyCompensationLevelProperty
Field Value
TintColorProperty
Defines the TintColor property.
public static readonly StyledProperty<Color> TintColorProperty
Field Value
TintOpacityProperty
Defines the TintOpacity property.
public static readonly StyledProperty<double> TintOpacityProperty
Field Value
Properties
BackgroundSource
Gets or Sets the BackgroundSource AcrylicBackgroundSource.
public AcrylicBackgroundSource BackgroundSource { get; set; }
Property Value
FallbackColor
Gets or Sets the Fallback Color. This is used on rendering plaforms that dont support acrylic.
public Color FallbackColor { get; set; }
Property Value
MaterialOpacity
Gets or Sets the MaterialOpacity. This makes the material more or less opaque.
public double MaterialOpacity { get; set; }
Property Value
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
TintColor
Gets or Sets the TintColor.
public Color TintColor { get; set; }
Property Value
TintOpacity
Gets or Sets the Tint Opacity.
public double TintOpacity { get; set; }
Property Value
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
EventArgsThe event args.
ToImmutable()
Creates an immutable clone of the brush.
public IExperimentalAcrylicMaterial ToImmutable()
Returns
- IExperimentalAcrylicMaterial
The immutable clone.
Events
Invalidated
public event EventHandler? Invalidated