Search This Blog

Loading...

Monday, 1 October 2012

Apply Theme To LightSwitch XtraReport 2012

Here is a simple technique to change the ribbon theme of DevExpress XtraReport in LightSwitch V2 (Visual Studio 2012)

To know more about DevExpress Silverlight theme please visit the below link
DevExpress Silverlight Theme

Prerequisite
1. Visual Studio 2012 Professional or higher edition.
2. DevExpress XtraReport for LightSwitch 2012 (ver 12.1.7)


First of all open your Application.cs file which is inside client project. Within Application_Initialize method add the following code.

Note: You have to add the DevExpress Theme reference in the client project.


using DevExpress.Xpf.Core;

partial void Application_Initialize()
{
    Dispatchers.Main.BeginInvoke(() =>
    {
        ThemeManager.ApplicationTheme = Theme.MetropolisLight;
    });
}

Screenshots

Deep Blue


Metropolis Dark


Metropolis Light



Enjoy XtraReport and LightSwitch
< >