Getting Started Guide

Download latest MetroToolkit installer or get latest source and build the solution.

Then open up your application and add references to the following MetroToolkit DLL's:
  • MetroToolkit.dll
  • MetroToolkit.Styles.dll
  • MetroToolkit.Controls.dll (optional)

Next open up your App.xaml and add a reference and update your Application.Resources section.
<Application x:Class="MetroToolkitBaseApp.App"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:MetroToolkit="clr-namespace:MetroToolkit;assembly=MetroToolkit"
             StartupUri="MainWindow.xaml">
    
    <Application.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="/MetroToolkit.Styles;component/Resources/Styles/Dark/Brushes.xaml" />
                <ResourceDictionary Source="/MetroToolkit.Styles;component/Resources/Styles/Dark/CoreStyles.xaml" />                
            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>
    </Application.Resources>
</Application>

Next add a reference to the MetroToolkit to your window xaml (ie MainWindow.xaml) and also set the Window Style:
<Window x:Class="MetroToolkitBaseApp.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity" 
        xmlns:MetroToolkit="clr-namespace:MetroToolkit;assembly=MetroToolkit"
        Title="MainWindow" 
        Height="350" 
        Width="525"
        Style="{DynamicResource MetroWindow}">

Then add the Borderless Window Behaviour:
    <!-- Interaction Behaviors -->
    <i:Interaction.Behaviors>
        <MetroToolkit:BorderlessWindowBehavior/>
    </i:Interaction.Behaviors>

Then set the Background color for the layout root:
    <Grid Name="LayoutRoot" Background="{DynamicResource MetroWindowBackground}">
        <!-- Main Content -->
        <DockPanel>
            <!-- Add your content here -->
        </DockPanel>
    </Grid>
</Window>

For more details on this checkout the sample base application in the Samples directory in source control.

Stay tuned for more updates and documentation.

Last edited Aug 9, 2011 at 6:30 PM by CodePlexUser11223, version 1

Comments

publicENEMY Mar 6, 2013 at 8:57 AM 
unable to compile. any guide to compile?

tonielro Oct 22, 2012 at 9:11 AM 
Where can I download metro tookit? The link seems not to be available.

S3NS4Ti0N Oct 18, 2012 at 6:19 PM 
Is this still under development ?

xexito Sep 10, 2012 at 8:48 PM 
Can anyone tell me what to do step by step?
Kind of: "Open the folder xxx" then "open the file xxxxx"... etc

lzzylqh May 21, 2012 at 3:15 AM 
Hello,I very like the MetroToolkit and intend to use it for small applications.But not found the MetroToolkit.Styles.dll.Can send to my mailbox?( 617339806@qq.com ).Thank you very much!

Fredolas Mar 17, 2012 at 10:34 PM 
Great work!
Let me ask you a few questions...
I ran the samle on Win 7. It only works on Win 7 and Vista? What about XP? Do i need a TemplateSelector for the style?
Is there a way to make the window covers the hole screen (taskbar included like when you use WindowStyle="None")?
Is there a way to set a MinWidth and a MinHeight?
Thxs!

domf Mar 2, 2012 at 12:09 PM 
MetroToolkit.Styles.dll, when?

markawil Feb 8, 2012 at 9:06 PM 
I cannot get the MetroToolkitBaseApp to load the MainWindow.xaml.

I get the error that the <i:Interaction.Behaviors> type cannot be found. I looked in my references they're all there, including System.Windows.Interactivity.

programista Dec 26, 2011 at 10:55 AM 
What's with the project, any update ?

lanting Nov 16, 2011 at 11:31 PM 
There is no the MetroToolkit.Style.dll file, and I can't see the demo like the screenshot.

christothes Oct 12, 2011 at 8:56 PM 
The project doesn't seem to build MetroToolkit.Styles.dll. Am I missing something?

karanits Aug 26, 2011 at 8:17 AM 
so is MetroToolkit.Styles.dll the problem from Metrotwit? any indication when u would be releasing it?

CodePlexUser11223 Aug 9, 2011 at 7:43 PM 
Note: MetroToolkit.Styles.dll is not part of the source control yet. Stay tuned...this is coming shortly and this documentation reflects the state of the project as it is now and not what is currently checked in. Let me know if you have any questions.