Skip to content

Commit f737ca3

Browse files
committed
Merge pull request #4403 from timunie/fix/ColorCanvasInvalidation
Fix HSV-Invalidation
1 parent dd0798b commit f737ca3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/MahApps.Metro/Controls/ColorPicker/ColorPickerBase.cs

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Licensed to the .NET Foundation under one or more agreements.
1+
// Licensed to the .NET Foundation under one or more agreements.
22
// The .NET Foundation licenses this file to you under the MIT license.
33
// See the LICENSE file in the project root for more information.
44

@@ -224,6 +224,7 @@ private static void OnHSVValuesChanged(DependencyObject dependencyObject, Depend
224224

225225
colorPicker.UpdateHsvValues = false;
226226
colorPicker.SetCurrentValue(SelectedColorProperty, hsv.ToColor());
227+
colorPicker.SetValue(SelectedHSVColorPropertyKey, hsv);
227228
colorPicker.UpdateHsvValues = true;
228229
}
229230
}

0 commit comments

Comments
 (0)