private void updateMarkerPosition(Color theColor) { if (updating) { return; } try { updating = true; opacitySlider.Value = theColor.ScA; HsvColor hsv = HsvColor.FromColor(theColor); PART_ColorSlider.Value = hsv.H; Point p = new Point(hsv.S, 1 - hsv.V); m_ColorPosition = p; updateTransform(); } finally { updating = false; } }