diTii.com Digital News Hub

Sign up with your email address to be the first to know about latest news and more.

I agree to have my personal information transfered to MailChimp (more information)

Aug262011

Sample Code for Metro Theme for Microsoft Visual Studio LightSwitch Released!

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

Share This Story, Choose Your Platform!

Do NOT follow this link or you will be banned from the site!