1. The problem
Download source code.
Have you ever wondered why the XAML parser recognizes the full palette of 141 colors (by name), but the Silverlight Colors class does not support the same full range of color names, for example, as WPF? I haven’t even noted that until the last week. In Silverlight in the XAML markup you can access all colors by name:
Unfortunately, this not valid if you try the same operation in the code behind file:
If you check in MSDN you will see that the Colors class allows you to access only 16 colors.