From f737ca334ee7a76c3127ff8297d0facfe7228ddc Mon Sep 17 00:00:00 2001 From: punker76 Date: Thu, 6 Jul 2023 12:18:25 +0200 Subject: [PATCH] Merge pull request #4403 from timunie/fix/ColorCanvasInvalidation Fix HSV-Invalidation --- src/MahApps.Metro/Controls/ColorPicker/ColorPickerBase.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/MahApps.Metro/Controls/ColorPicker/ColorPickerBase.cs b/src/MahApps.Metro/Controls/ColorPicker/ColorPickerBase.cs index 95878c1a1b..73e6f297ce 100644 --- a/src/MahApps.Metro/Controls/ColorPicker/ColorPickerBase.cs +++ b/src/MahApps.Metro/Controls/ColorPicker/ColorPickerBase.cs @@ -1,4 +1,4 @@ -// Licensed to the .NET Foundation under one or more agreements. +// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. @@ -224,6 +224,7 @@ private static void OnHSVValuesChanged(DependencyObject dependencyObject, Depend colorPicker.UpdateHsvValues = false; colorPicker.SetCurrentValue(SelectedColorProperty, hsv.ToColor()); + colorPicker.SetValue(SelectedHSVColorPropertyKey, hsv); colorPicker.UpdateHsvValues = true; } }