Theme-aware Windows Phone 7 Icon Buttons

If you download the set of standard Windows Phone 7 icons, you’ll notice there are two sets: one for dark backgrounds, and one for light backgrounds. The built-in application bar magically picks the right icon, but if we want to use these icons for our own buttons, we need to switch between them.