79787278

Date: 2025-10-10 11:27:01
Score: 1
Natty:
Report link

to use colors in WPF, you can do this:


txbName.BorderBrush = (SolidColorBrush)(new BrushConverter().ConvertFrom("#00b4d8"));

//-- OR

txbName.BorderBrush = new SolidColorBrush(Color.FromRgb(255, 0, 128));

This way, you should be able to use both Hex and RGB colors :)

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Emanuel