I'm working on an app in C# (Windows-Phone-7), and I'm trying to do something simple that has me stumped.
I want to cycle through each Color in Colors, and write out the Color name to a file (along with other stuff).
I have the simplest bit of code, which I know will not work, but I wrote to get started:
foreach (Color myColor in Colors)
{
}
Of course, this gives me the following syntax error:
'System.Windows.Media.Colors' is a 'type', but is used like a 'variable'.
Is there a way to do this? It seems really simple!