Click here to Skip to main content
12,451,425 members (60,812 online)
Click here to Skip to main content

Stats

35.6K views
5.5K downloads
31 bookmarked
Posted

Silverlight Dynamic Themes

, 6 Jan 2012 CPOL
This article describes how to dynamically apply themes to a Silverlight application.
SLDynamicThemes2a_src
SLDynamicThemes2
Assets
Themes
AccentColor
Cosmopolitan
JetPack
Windows7
Controls
Models
Properties
SLDynamicThemes2.Web
ClientBin
Properties
SLDynamicThemes2b_src
SLDynamicThemes2
Assets
Themes
AccentColor
Cosmopolitan
JetPack
Windows7
Controls
Models
Properties
SLDynamicThemes2.Web
ClientBin
Properties
SLDynamicThemes2
SLDynamicThemes2
Assets
Themes
AccentColor
Cosmopolitan
JetPack
Windows7
Controls
Models
Properties
SLDynamicThemes2.Web
ClientBin
Properties
<ResourceDictionary
  xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
  xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  xmlns:controls="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls"
  xmlns:navigation="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Navigation"
  xmlns:dataControls="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Data.DataForm.Toolkit" 
  xmlns:dataInput="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Data.Input"
  xmlns:vsm="clr-namespace:System.Windows;assembly=System.Windows"  
  xmlns:controlsToolkit="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Toolkit">

    <ResourceDictionary.MergedDictionaries>
        <ResourceDictionary Source="/SLDynamicThemes2;component/Assets/Themes/Cosmopolitan/CoreStyles.xaml" />
        <ResourceDictionary Source="/SLDynamicThemes2;component/Assets/Themes/Cosmopolitan/SDKStyles.xaml" />
        <ResourceDictionary Source="/SLDynamicThemes2;component/Assets/Themes/Cosmopolitan/ToolkitStyles.xaml" />
        <ResourceDictionary Source="/SLDynamicThemes2;component/Assets/Themes/Cosmopolitan/Styles.xaml" />
        <ResourceDictionary Source="/SLDynamicThemes2;component/Assets/Themes/Cosmopolitan/CustomStyles.xaml" />
    </ResourceDictionary.MergedDictionaries>

</ResourceDictionary>

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author

rzvdaniel
Software Developer
Romania Romania
I have been a software developer for a while and still find this an interesting job.

You may also be interested in...

Pro
Pro
| Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.160826.1 | Last Updated 7 Jan 2012
Article Copyright 2011 by rzvdaniel
Everything else Copyright © CodeProject, 1999-2016
Layout: fixed | fluid