Skip to content
Thomas Freudenberg edited this page Jan 11, 2015 · 3 revisions

Before using TinyLittleMvvm, you first have to create a new WPF application.

1 Create a new WPF Application project

We need to start somewhere, don't we?

2 Delete the MainWindow class

We'll re-create the main window and its view model later.

Additionally, remove the StartupUri attribute from the Application element in App.xaml.

3 Add the MahApps.Metro NuGet package

Install-Package MahApps.Metro

4 Add MahApps.Metro resources to your app.xaml

Just following MahApps.Metro's quick start guide here:

All of MahApp.Metro's resources are contained within separate resource dictionaries. In order for most of the controls to adopt the MahApps.Metro theme, you will need to add the following ResourceDictionaries to your App.xaml.

<Application.Resources>
  <ResourceDictionary>
    <ResourceDictionary.MergedDictionaries>
      <ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Controls.xaml" />
      <ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Fonts.xaml" />
      <ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Colors.xaml" />
      <ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Accents/Blue.xaml" />
      <ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Accents/BaseLight.xaml" />
    </ResourceDictionary.MergedDictionaries>
  </ResourceDictionary>
</Application.Resources>