timheuer / callisto

A control toolkit for Windows 8 XAML applications. Contains some UI controls to make it easier to create Windows UI style apps for the Windows Store in accordance with Windows UI guidelines.
http://timheuer.com/blog/archive/2012/05/31/introducing-callisto-a-xaml-toolkit-for-metro-apps.aspx
Other
338 stars 108 forks source link

AppManifestHelper crash if you use non hex color in appmanifest #110

Closed Kuirak closed 11 years ago

Kuirak commented 12 years ago

You can't compile if you use white instead of #FFFFFF in your package.appmanifest.

it should although handle color strings.

timheuer commented 12 years ago

There is no WinRT API to convert from a named string value to Windows.UI.Color unfortunately. This makes this challenge difficult :-)

dotMorten commented 11 years ago

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); }