From 54d607cb361d40eccf2d31da2305423360cc4b09 Mon Sep 17 00:00:00 2001 From: Roy Ben Shabat Date: Sun, 9 Feb 2025 17:07:17 +0200 Subject: Critical fix on job rgb/lab cmyk & MyColors. --- .../TouchColorPickerControls/TouchColorPickerControl.cs | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'Software/Visual_Studio/Tango.Touch') diff --git a/Software/Visual_Studio/Tango.Touch/TouchColorPickerControls/TouchColorPickerControl.cs b/Software/Visual_Studio/Tango.Touch/TouchColorPickerControls/TouchColorPickerControl.cs index e2e717183..e8c431f65 100644 --- a/Software/Visual_Studio/Tango.Touch/TouchColorPickerControls/TouchColorPickerControl.cs +++ b/Software/Visual_Studio/Tango.Touch/TouchColorPickerControls/TouchColorPickerControl.cs @@ -113,7 +113,7 @@ namespace Tango.Touch.Controls set { SetValue(ColorValueProperty, value); - OnColorValueChaged(); + //OnColorValueChaged(); } } @@ -121,7 +121,13 @@ namespace Tango.Touch.Controls /// The color number value property of slider and picker number control /// public static readonly DependencyProperty ColorValueProperty = - DependencyProperty.Register("ColorValue", typeof(double), typeof(TouchColorPickerControl), new PropertyMetadata(0.0)); + DependencyProperty.Register("ColorValue", typeof(double), typeof(TouchColorPickerControl), new PropertyMetadata(0.0, new PropertyChangedCallback((d, e) => OnColorValueChanged(d as TouchColorPickerControl, e)))); + + private static void OnColorValueChanged(TouchColorPickerControl control, DependencyPropertyChangedEventArgs e) + { + control.OnColorValueChaged(); + } + /// /// The selected color property -- cgit v1.3.1