protected override System.Drawing.Color Convert(int value, object parameter, CultureInfo culture)
        {
            MvxHexParser.ParseRGBInteger(value, out int red, out int green, out int blue);

            var color = System.Drawing.Color.FromArgb(red, green, blue);

            return(color);
        }
示例#2
0
 protected override System.Drawing.Color Convert(string value, object parameter, CultureInfo culture)
 => MvxHexParser.ColorFromHexString(value);