Microsoft LightSwitch Black Theme: the mystery solved…

Over three months ago, we discovered the LightSwitch crew had a hidden theme in their Microsoft.LightSwitch.Client.Internal assembly, called the BlackTheme

Without documentation, and with no way to select it from the normal LightSwitch development environment, we were left with no other options than to guess the reason for its existence… Well, we could have just asked the LightSwitch crew… But where’s the fun in that?

After countless sleepless nights, wondering, pondering, trying to get a grasp on this deep, dark secret they have hidden for us, I tried to move on with my life, never to think about it again.  Until recently, when – purely by accident – I discovered that the BlackTheme actually has a very obvious use…

When you select the default – Blue Glossy – LightSwitch theme to use in your applications, the framework checks to see if your Windows machine is running in high contrast or not.  If it isn’t, the default theme is applied, but when it is, the framework applies the BlackTheme instead.  The BlueTheme has it’s brushes “hardcoded”, but the BlackTheme uses the system brushes instead…  That explains why I couldn’t find much of a difference when I used my ExtensionsMadeEasy to force the BlackTheme, apart from the blue (windows default) selection color…

Really short post this time, because I’m digging into another LightSwitch feature I didn’t know about (and can’t find any posts about on the web either), and can’t wait to get back to it. 🙂

 

Jan out…

 

Advertisements

One thought on “Microsoft LightSwitch Black Theme: the mystery solved…

  1. Pingback: Windows Azure and Cloud Computing Posts for 12/21/2011+ - Windows Azure Blog

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s