Skip to main content

IsAlphaVisible Property

Gets or sets a value indicating whether the alpha component is visible and rendered. When false, this ensures that the gradient is always visible and never transparent regardless of the actual color. This property is ignored when the alpha component itself is being displayed.

Definition

Namespace: Avalonia.Controls.Primitives
Assembly: Avalonia.Controls.ColorPicker (in Avalonia.Controls.ColorPicker.dll)

public bool IsAlphaVisible { get; set; }

Property Value

Boolean

Remarks

Setting to false means the alpha component is always forced to maximum for components other than ColorComponent during rendering. This doesn't change the value of the alpha component in the color – it is only for display.

See Also

Reference

ColorSlider Class
Avalonia.Controls.Primitives Namespace