예제 #1
0
        public MainWindow()
        {
            InitializeComponent();

            Color = new Color.Color();

            ColorModel rgbColorModel = ColorModel.CreateColorModel("rgb");
            ColorModel cmyColorModel = ColorModel.CreateColorModel("cmy");
            ColorModel hsvColorModel = ColorModel.CreateColorModel("hsv");
            ColorModel luvColorModel = ColorModel.CreateColorModel("luv");

            rgbColorModel.Color = Color;
            cmyColorModel.Color = Color;
            hsvColorModel.Color = Color;
            luvColorModel.Color = Color;

            RgbSliders.Model = rgbColorModel;
            CmySliders.Model = cmyColorModel;
            HsvSliders.Model = hsvColorModel;
            LuvSliders.Model = luvColorModel;

            Color.PropertyChanged          += ColorOnPropertyChanged;
            luvColorModel.OverflowOccurred += LuvColorModelOnOverflowOccurred;
        }