Ejemplo n.º 1
0
        public ColorPickerTests()
        {
            _colorPicker = new ColorPicker();
            _colorPicker.ApplyDefaultStyle();
            _colorPicker.Arrange(new Rect(0, 0, 400, 100));

            _hueSlider = _colorPicker.FindVisualChild <Slider>(ColorPicker.HueSliderPartName);
            _saturationBrightnessPicker      = _colorPicker.FindVisualChild <Canvas>(ColorPicker.SaturationBrightnessPickerPartName);
            _saturationBrightnessPickerThumb = _colorPicker.FindVisualChild <Thumb>(ColorPicker.SaturationBrightnessPickerThumbPartName);
        }