We shipped the Silverlight Toolkit with the following Themes:
In this post, I will be talking about how to customize these themes and produce many great looking variations.
Customizing Shiny Blue Theme:
First thing first, if you haven’t already done so, download the Silverlight Toolkit here. Under the Source\Controls.Samples\Theming\ThemeBrowser you will find all themes files as well as the source code for theme browser sample. This blog assumes that you are familiar with Implicit Style Manger. Please refer to Beatriz’s or Jesse Liberty blogs. (for a deep dive go to Jafar's blog, the developer of ISM)
For now, we will be working with ShinyBlue.xaml.
Create a new Silverlight Project in Silverlight Project
Add a reference to Microsoft.Windows.Controls.Theming.dll and System.Windows.Controls.dll
Add ShinyBlue.xaml to your project, rename to ShinyDarkTeal.xaml and set the build action to Content.
Add the following lines to your page.xaml file:
Open ShinyDarkTeal and search for the following lines (towards the beginning of the file):
<Color x:Key="NormalBrushGradient2">#FF398FDF</Color> <Color x:Key="NormalBrushGradient3">#FF006DD4</Color> <Color x:Key="NormalBrushGradient4">#FF0A3E69</Color>
Replace by the following:
Compile and run the sample. You should see the following:
As you can see, changing the color of the theme is simple. In the next blog, I will dive deeper into theme customization. In the meanwhile, you can Download the sample here. I added more variations of the Shiny theme for you enjoyment:
You can download the individual themes here: