Lloyd,
Are you attaching an event handler to the DependencyProperty instance
for when those values change? You should be able to set event handlers for
each of them (or rather, one for the R, G, B, values, and one for the Color
value) and then modify the values in the event handler. When you call
SetValue from the event handler, it should prevent the setting of the values
from triggering the respective change events, and subsequently, an endless
loop.

Signature
- Nicholas Paldino [.NET/C# MVP]
- mvp@spam.guard.caspershouse.com
>I have a color chooser class
> class ColorPicker : Control
[quoted text clipped - 21 lines]
> does it makes sense?
> How should I synchronize values?
Lloyd Dupont - 16 Jun 2007 16:08 GMT
Hi Nicholas,
My worry are not from endless loop which I know how to prevent, but more
from other problem which I'm not sure it's even relevant...
(the fact that I'm calling SetValue() sometime when ClearValue() would be
more appropriate)

Signature
Regards,
Lloyd Dupont
NovaMind Software
Mind Mapping at its best
www.nova-mind.com
> Lloyd,
>
[quoted text clipped - 31 lines]
>> does it makes sense?
>> How should I synchronize values?