Geeks With Blogs
Darren Fieldhouse January 2009 Entries
Using LINQ and Reflection to implement FromKnownColor in the compact framework
I’m working on a project that runs on a smart phone using the compact framework. The user needs to be able to enter the name of a colour (e.g. “Green”) and the app needs to be able to display an icon in that colour. My first thought was to use the FromKnownColor() static method on the Color class, but it turns out that’s not implemented in the compact framework. Given that the colour class has static properties for all the well known colours, all with the correct names, I felt there must be some ......

Posted On Wednesday, January 14, 2009 12:32 PM

Copyright © DarrenFieldhouse | Powered by: GeeksWithBlogs.net | Join free