I have created a simple Calendar application and I would like to change the color of names of the days that are displayed. I created a simple condition:
if (nameDay.Text.Equals("Sunday"))
{
daytxt.Foreground = Brushes.Red;
}
But in this case the color is changing permanently. When the name of day changes to "Monday" then color of the text is still red but it should be black. How can I fix my issue?