ColorSlider.cs: throw exception when Value is invalid