diff options
| author | Roy Ben Shabat <Roy.mail.net@gmail.com> | 2025-02-09 17:07:17 +0200 |
|---|---|---|
| committer | Roy Ben Shabat <Roy.mail.net@gmail.com> | 2025-02-09 17:07:17 +0200 |
| commit | 54d607cb361d40eccf2d31da2305423360cc4b09 (patch) | |
| tree | 89ba1326111daae27beceb7cc3ae913894f646a5 /Software/Visual_Studio/Tango.Touch | |
| parent | 54c994826413839434d3a541345898af45311682 (diff) | |
| download | Tango-54d607cb361d40eccf2d31da2305423360cc4b09.tar.gz Tango-54d607cb361d40eccf2d31da2305423360cc4b09.zip | |
Critical fix on job rgb/lab cmyk & MyColors.
Diffstat (limited to 'Software/Visual_Studio/Tango.Touch')
| -rw-r--r-- | Software/Visual_Studio/Tango.Touch/TouchColorPickerControls/TouchColorPickerControl.cs | 10 |
1 files changed, 8 insertions, 2 deletions
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 /// </summary> 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(); + } + /// <summary> /// The selected color property |
