Skip to main content

IsRoundingEnabled Property

Gets or sets a value indicating whether rounding of color component values is enabled.

Definition​

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

public bool IsRoundingEnabled { get; set; }

Property Value​

Boolean

Remarks​

This is applicable for the HSV color model only. The HsvColor struct uses double values while the Color struct uses byte. Only double types need rounding.

See Also​

Reference​

ColorSlider Class
Avalonia.Controls.Primitives Namespace