Created
August 15, 2015 19:37
-
-
Save kiichi/a9ace80b1de4486ba22b to your computer and use it in GitHub Desktop.
List all colors in Windows Universal App
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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