protected void CreateControl()
        {
            var hdrControl = new HdrControl
                {
                    NoiseSuppression = _hdrEffect.NoiseSuppression,
                    Strength = _hdrEffect.Strength,
                    Saturation = _hdrEffect.Saturation
                };

            Control = hdrControl;
            hdrControl.ValueChanged += HdrValueChanged;
        }
Пример #2
0
        public override bool AttachControl(FilterPropertiesControl control)
        {
            Control = control;

            _hdrControl = new HdrControl
            {
                NoiseSuppression = _hdrEffect.NoiseSuppression,
                Strength = _hdrEffect.Strength,
                Saturation = _hdrEffect.Saturation
            };

            control.ControlsContainer.Children.Add(_hdrControl);
            _hdrControl.ValueChanged += HdrValueChanged;

            return true;
        }