Download the current release.

The zip-file contains:

- Monotone.Colors.xaml: contains all used colors
- Monotone.Brushes.xaml: contains all ued brushes.
- Monotone.xaml: contains all styles and templates for supported standard WPF controls
- Monotone.MahApps.xaml: contains all styles and template for supported MahApps.Metro controls
- Monotone.ExtendedWPFToolkit.xaml: contains all styles and templates for supported controls of the Extended WPF Toolkit
- Monotone.ColorBox.xaml: contains all styles and templates for the ColorBox Control
- MonotoneUtils.cs: An optional class which provides some useful features like color-scheme generation or changing the colors at runtime
- MonotoneTheme.dll: Is a wrapper for Monotone.AvalonDock.xaml. Contains the styles and templates for AvalonDock. Notice: You need this file ONLY for styling AvalonDock. If you don´t use AvalonDock you don´t have to include it

Since version 1.4 the there are multiple Color and Brush definition files located in accents-directory. Choose the set you like or create your own.

XAML-Dependencies

graph.png

When including Monotone in your project, take care of the order shown in the picture

Include the files

Choose the files you need and add them to your Resources:

<Application x:Class="Monotone.App"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             StartupUri="MainWindow.xaml">
    <Application.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                
                <ResourceDictionary Source="Monotone.Colors.xaml" />
                <ResourceDictionary Source="Monotone.Brushes.xaml" />
                <ResourceDictionary Source="Monotone.MahApps.xaml" />
                <ResourceDictionary Source="Monotone.xaml" />
                <ResourceDictionary Source="Monotone.ExtendedWPFToolkit.xaml" />
                <ResourceDictionary Source="Monotone.ColorBox.xaml" />

            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>
        
    </Application.Resources>
</Application>


That´s it!

You don´t have to add them to the Application-Resources. You can choose any element (like a Window, a grid, or something else) as root and the children of it get the style.

Notice: In order to apply the ColorBox-Theme you´ll have to modify the DLL. The Theme have to style some types which are internal. Thus, you have to make them public or embed the XAML-file into the assembly.


Last edited Jan 24, 2015 at 8:24 PM by recursivebytes, version 5