Skip to content

Instantly share code, notes, and snippets.

@nickdarnell
Created March 28, 2015 20:37
Show Gist options
  • Save nickdarnell/90a3091c6a3ee4c6feef to your computer and use it in GitHub Desktop.
Save nickdarnell/90a3091c6a3ee4c6feef to your computer and use it in GitHub Desktop.
SolidColorBrush current = SystemColors.HighlightBrush;
FieldInfo colorCacheField = typeof(SystemColors).GetField("_colorCache",
BindingFlags.Static | BindingFlags.NonPublic);
Color[] _colorCache = (Color[])colorCacheField.GetValue(typeof(SystemColors));
_colorCache[14] = Color.FromArgb(0xFF, 0xFF, 0x00, 0x00);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment