Esempio n. 1
0
 internal static Color ColorFromHex(string colorHex)
 {
     return((Color?)ColorConverter.ConvertFromString(colorHex) ?? Colors.Transparent);
 }
Esempio n. 2
0
 public Brush GetBrush(string key)
 {
     return(new SolidColorBrush((Color)ColorConverter.ConvertFromString(Dictionary[key])));
 }