I think that the title is clear !
What I have now is :
System.Drawing.Color uiui = System.Drawing.ColorTranslator.FromHtml(myString);
var intColor =
You can use the System.Windows.Media.ColorConverter
var color = (Color)ColorConverter.ConvertFromString("#FF010203");
//OR
var color = (Color)ColorConverter.ConvertFromString("#010203");
//OR
var color = (Color)ColorConverter.ConvertFromString("Red");
//and then:
var brush = new SolidColorBrush(color);
It's pretty flexible as to what it accepts. Have a look at the examples in XAML here. You can pass any of those string formats in.
Note: These are all in System.Windows.Media
(for WPF) not to be confused with System.Drawing
(for WinForms)