Closed Kuirak closed 11 years ago
There is no WinRT API to convert from a named string value to Windows.UI.Color unfortunately. This makes this challenge difficult :-)
How about this: var colorProp = System.Reflection.RuntimeReflectionExtensions.GetRuntimeProperty(typeof(Windows.UI.Colors), "AliceBlue"); if (colorProp != null) { var color = (Windows.UI.Color)colorProp.GetValue(null); }
You can't compile if you use white instead of #FFFFFF in your package.appmanifest.
it should although handle color strings.