diff --git a/src/Avalonia.Controls.ColorPicker/ColorSlider/ColorSlider.cs b/src/Avalonia.Controls.ColorPicker/ColorSlider/ColorSlider.cs index 59fb53556a..b3c8fcb775 100644 --- a/src/Avalonia.Controls.ColorPicker/ColorSlider/ColorSlider.cs +++ b/src/Avalonia.Controls.ColorPicker/ColorSlider/ColorSlider.cs @@ -20,7 +20,7 @@ namespace Avalonia.Controls.Primitives /// public event EventHandler? ColorChanged; - private const double MaxHue = 359.99999999999999999; + private const double MaxHue = 359.99999999999999999; // 17 decimal places private bool disableUpdates = false; /// diff --git a/src/Avalonia.Controls.ColorPicker/ColorSpectrum/ColorSpectrum.Properties.cs b/src/Avalonia.Controls.ColorPicker/ColorSpectrum/ColorSpectrum.Properties.cs index a1cb43a95a..ca8f4ee8ae 100644 --- a/src/Avalonia.Controls.ColorPicker/ColorSpectrum/ColorSpectrum.Properties.cs +++ b/src/Avalonia.Controls.ColorPicker/ColorSpectrum/ColorSpectrum.Properties.cs @@ -38,37 +38,49 @@ namespace Avalonia.Controls.Primitives /// Defines the property. /// public static readonly StyledProperty MaxHueProperty = - AvaloniaProperty.Register(nameof(MaxHue), 359); + AvaloniaProperty.Register( + nameof(MaxHue), + 359); /// /// Defines the property. /// public static readonly StyledProperty MaxSaturationProperty = - AvaloniaProperty.Register(nameof(MaxSaturation), 100); + AvaloniaProperty.Register( + nameof(MaxSaturation), + 100); /// /// Defines the property. /// public static readonly StyledProperty MaxValueProperty = - AvaloniaProperty.Register(nameof(MaxValue), 100); + AvaloniaProperty.Register( + nameof(MaxValue), + 100); /// /// Defines the property. /// public static readonly StyledProperty MinHueProperty = - AvaloniaProperty.Register(nameof(MinHue), 0); + AvaloniaProperty.Register( + nameof(MinHue), + 0); /// /// Defines the property. /// public static readonly StyledProperty MinSaturationProperty = - AvaloniaProperty.Register(nameof(MinSaturation), 0); + AvaloniaProperty.Register( + nameof(MinSaturation), + 0); /// /// Defines the property. /// public static readonly StyledProperty MinValueProperty = - AvaloniaProperty.Register(nameof(MinValue), 0); + AvaloniaProperty.Register( + nameof(MinValue), + 0); /// /// Defines the property.