I always try to use named colors whenever I can because it makes your Xaml much easier to read! Who knows what color #1A37C5 is? Okay, so maybe some of you can “see into the matrix” but I’d much rather see something like “DarkBlue”. It’s also easier to write because you VS gives you IntelliType when entering a color for a property of type Brush or Color.
Here’s a super easy way to see all the named colors out there that Silverlight supports. This tool also supports copying the name by selecting it and using Ctrl+C. Plus, you can sort the list alphabetically, by red, blue, green, hue, saturation, or luminosity for those of us that get dizzy scanning the palette for a good “blue” to choose.
Note: Microsoft has a pretty good table of their own with all the same colors in my tool (there are 141 of them by the way, not 240 as stated on the MS site). But the colors blocks are smaller, it’s all just a big image so you can’t copy names, and it of course lacks my patented sort feature 😉
Simple but very useful
Thanks!
I just added a feature to show the hex value of the selected color. This comes in useful for identifying existing colors or turning known colors into semi-transparent versions of themselves.
For example, If you want a semi-transparent version of blue, just find the hex for blue (#0000FF) and prepend the 2 digit hex value for the transparency byte (aka alpha channel) to create something like #800000FF. Note: “80” is 128 in hex, 128 is half of 256 (the maximum), meaning this will create a 50% transparent blue. Note: I recommend using the Opacity property over a transparent color when applicable but sometimes you need a transparent color rather than a transparent control.
Howdy! Quick question that’s completely off topic. Do you know how to
make your site mobile friendly? My site looks weird when browsing from my
iphone 4. I’m trying to find a theme or plugin that might be able to resolve
this problem. If you have any recommendations, please share.
Thank you!
As the admin of this website is working, no question very rapidly it will
be well-known, due to its quality contents.
Hello would you mind letting me know which webhost you’re utilizing?
I’ve loaded your blog in 3 different internet browsers and I
must say this blog loads a lot quicker then most. Can you suggest a good hosting provider at a honest price?
Cheers, I appreciate it!
Hello there! Would you mind if I share your blog
with my twitter group? There’s a lot of people that I think
would really enjoy your content. Please let me know.
Thank you
Do you mind if I quote a few of your articles as long as I provide credit and sources back to your webpage?
My website is in the very same area of interest as yours and my users would genuinely
benefit from a lot of the information you present here.
Please let me know if this okay with you. Thanks!
I’ve read a few excellent stuff here. Certainly price bookmarking for revisiting.
I wonder how much attempt you put to make such a fantastic informative site.
I take pleasure in, cause I found just what I used to be having a look for.
You’ve ended my 4 day lengthy hunt! God Bless you man. Have a great day.
Bye