Skip to content

Instantly share code, notes, and snippets.

@kiichi
Created August 15, 2015 19:37
Show Gist options
  • Select an option

  • Save kiichi/a9ace80b1de4486ba22b to your computer and use it in GitHub Desktop.

Select an option

Save kiichi/a9ace80b1de4486ba22b to your computer and use it in GitHub Desktop.
List all colors in Windows Universal App
using Windows.UI;
using System.Reflection;
//...
foreach (var propertyInfo in typeof(Windows.UI.Colors).GetProperties()) {
//propertyInfo.Name
Color col = (Windows.UI.Color)propertyInfo.GetValue(this, null);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment