public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
        {
            if (!(value is System.Drawing.Color color))
            {
                throw new InvalidOperationException($"Wrong type!");
            }

            return(ColorConverterHelpers.SystemColorToMediaColor(color));
        }
        public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
        {
            if (null == value)
            {
                return(null);
            }

            if (value is System.Drawing.Color c)
            {
                var color = ColorConverterHelpers.SystemColorToMediaColor(c);
                return(new SolidColorBrush(color));
            }

            Type type = value.GetType();

            throw new InvalidOperationException("Unsupported type [" + type.Name + "]");
        }