Chnage NavigationPane Theme

Oct 14, 2012 at 10:11 AM
Edited Oct 14, 2012 at 12:38 PM

Hi all,

Two ways to change the theme:

(1) In code behind just call the following statement:

ThemeManager.SetActiveTheme(NavigationPaneTheme.Office2010Silver);

Enumerations for themes in NavigationPaneTheme are Office2007Black, Office2007Blue, Office2007Silver, Office2010Black, Office2010Blue, Office2010Silver and WindowsLive.

(2) In XAML, we can merge any one of the following ResourceDictionary in our application's ResourceDictionary:

i) <ResourceDictionary Source="pack://application:,,,/NavigationPane;Component\Themes\NavigationPane\WindowsLive\Live.xaml" />

ii) <ResourceDictionary Source="pack://application:,,,/NavigationPane;Component\Themes\NavigationPane\Office2007\Blue.xaml" />

iii) <ResourceDictionary Source="pack://application:,,,/NavigationPane;Component\Themes\NavigationPane\Office2007\Silver.xaml" />

iV) <ResourceDictionary Source="pack://application:,,,/NavigationPane;Component\Themes\NavigationPane\Office2007\Black.xaml" />

V) <ResourceDictionary Source="pack://application:,,,/NavigationPane;Component\Themes\NavigationPane\Office2010\Blue.xaml" />

Vi) <ResourceDictionary Source="pack://application:,,,/NavigationPane;Component\Themes\NavigationPane\Office2010\Silver.xaml" />

Vii) <ResourceDictionary Source="pack://application:,,,/NavigationPane;Component\Themes\NavigationPane\Office2010\Black.xaml" />

Regards,

Muhammad K. Shehzad