Click here to Skip to main content
13,002,355 members (80,380 online)
Click here to Skip to main content

Stats

39K views
5.6K downloads
30 bookmarked
Posted 26 Dec 2011

Silverlight Dynamic Themes

, 6 Jan 2012
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...

Permalink | Advertise | Privacy | Terms of Use | Mobile
Web01 | 2.8.170626.1 | Last Updated 7 Jan 2012
Article Copyright 2011 by rzvdaniel
Everything else Copyright © CodeProject, 1999-2017
Layout: fixed | fluid