so i am trying to change the background color based on the current color by using a switch however iam getting an error.
switch (BtnColor.BackgroundColor)
            {
                case Color.Red:
                    BtnColor.BackgroundColor = Color.White;
                    break;
                case Color.White:
                    BtnColor.BackgroundColor = Color.Blue;
                    break;
                default:
                    BtnColor.BackgroundColor = Color.Red;
                    break;
            }
i am getting the following error on: case Color.White: and case Color.Red:
A constant value is expected
 
    
