public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
{
string userColourString = value.ToString();
Debug.WriteLine(userColourString);
long userColourNumeric = 0;
Int64.TryParse(userColourString, out userColourNumeric);
var colourToUse = userColourNumeric;
return (Color)ColorConverter.ConvertFromString(string.Format("#{0:x6}", colourToUse));
}
I'm trying to convert the following two values into colours by using the converter method above but it's not working,. -2147483630 16777215