I am trying to set a colour of an ellipse object in code behind. So far I’m doing it by using the SolidColorBrush method. Is there a way to insert the colour value in hexadecimal, like in CSS?
Here is a code that I am using:
ellipse.Fill = new SolidColorBrush(Colors.Yellow);
I wrote a simple color converter function to solve this problem. The happy faces are really the number 8 and a parentheses, like this: 8).