I was trying to import my WP7 proj to Windows 8. I have an array of
Color[] g_colors = { Colors.Yellow, Colors.Blue, Colors.Brown, Colors.Cyan,
Colors.DarkGray, Colors.Gray, Colors.Green, Colors.LightGray,
Colors.Magenta, Colors.Orange,Colors.Purple,Colors.Red,Colors.White };
How do I do the same in WPF?
Thanks and regards.
Have you added the appropriate namespaces to your code?
should sort out the issues.
Following from the comments that you tried this, and it “didn’t work”, I put together this page in VS. The .cs file is as below, and all compiles fine.