Skip to content

Commit

Permalink
Merge pull request #4403 from timunie/fix/ColorCanvasInvalidation
Browse files Browse the repository at this point in the history
Fix HSV-Invalidation
  • Loading branch information
punker76 committed Jul 6, 2023
1 parent dd0798b commit f737ca3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/MahApps.Metro/Controls/ColorPicker/ColorPickerBase.cs
Original file line number Diff line number Diff line change
@@ -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.

Expand Down Expand Up @@ -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;
}
}
Expand Down

0 comments on commit f737ca3

Please sign in to comment.