The LightSwitch Team has released samples in both Visual Basic and C# that contain the code for the recently released Metro Theme for Visual Studio LightSwitch.
“The sample expands upon the Help topic Walkthrough: Creating a Theme Extension, which demonstrates a simple theme that defines fonts and colors. The Metro theme also makes use of styles, defining new appearance and behavior for the built-in LightSwitch control templates,” informs LightSwitch Team.
To provide a consistent experience, you will need to define Resource Dictionaries in the form of a .xaml file for each control template, as shown in the following illustration:
“Additional styles are defined in the MetroStyles.xaml file, which also contains a MergedDictionaries node that references the other .xaml files. When LightSwitch loads the extension, it reads in all of the style information and applies it to the built-in templates, providing a different look and feel for your application,” team added.
For more information on creating extensions for Visual Studio LightSwitch, see MSDN article – Visual Studio LightSwitch 2011 Extensibility Toolkit, and download: LightSwitch Metro Theme Extension Sample