title: How to add PresentationFramework.Aero theme to ResourceDictionary
body: <p>I want to add the PresentationFramework.Aero theme to my ResourceDictionary. 
  The ResourceDictionary itself is in one assembly called ProjectResources. Within this assembly I define all my styles for my project. So this ResourceDictionary is used by several different assemblies in my project. So far it worked fine for all my Dictionaries defined.</p>
  
  <p>Now i want to add the Aero theme. But I always get the exception:</p>
  
  <blockquote>
    <p>An unhandled exception of type
    'System.Windows.Markup.XamlParseException' occurred in
    PresentationFramework.dll</p>
  </blockquote>
  
  <p>Inner Exception:</p>
  
  <blockquote>
    <p>{"Could not load file or assembly 'PresentationFramework.Aero,
    Culture=neutral' or one of its dependencies. The system cannot find
    the file specified.":"PresentationFramework.Aero, Culture=neutral"}</p>
  </blockquote>
  
  <p>The ResourceDictionary is defined like that:</p>
  
  <pre><code>&lt;Application.Resources&gt;
          &lt;ResourceDictionary&gt;
              &lt;ResourceDictionary.MergedDictionaries&gt;
                  &lt;ResourceDictionary Source="pack://application:,,,/ProjectResources;component/ProjectResources/Dictionaries/ImageDefinition.xaml"/&gt;
                  &lt;ResourceDictionary Source="pack://application:,,,/ProjectResources;component/ProjectResources/Dictionaries/Brushes.xaml"/&gt;
                  &lt;ResourceDictionary Source="pack://application:,,,/ProjectResources;component/ProjectResources/Dictionaries/StylesLabel.xaml"/&gt;
                  &lt;ResourceDictionary Source="pack://application:,,,/ProjectResources;component/ProjectResources/Dictionaries/StylesTextBox.xaml"/&gt;
                  &lt;ResourceDictionary Source="pack://application:,,,/ProjectResources;component/ProjectResources/Dictionaries/StylesButton.xaml"/&gt;
                  &lt;ResourceDictionary Source="pack://application:,,,/ProjectResources;component/ProjectResources/Dictionaries/StylesTabControl.xaml"/&gt;
                  &lt;ResourceDictionary Source="pack://application:,,,/ProjectResources;component/ProjectResources/Dictionaries/StylesTextBox.xaml"/&gt;
                  &lt;ResourceDictionary Source="pack://application:,,,/ProjectResources;component/ProjectResources/Dictionaries/StylesBorder.xaml"/&gt;
                  &lt;ResourceDictionary Source="pack://application:,,,/ProjectResources;component/ProjectResources/Dictionaries/StylesListView.xaml"/&gt;
                  &lt;ResourceDictionary Source="pack://application:,,,/ProjectResources;component/ProjectResources/Dictionaries/StylesWindow.xaml"/&gt;
                  &lt;ResourceDictionary Source="pack://application:,,,/ProjectResources;component/ProjectResources/Dictionaries/StylesIndicator.xaml"/&gt;
                  &lt;ResourceDictionary Source="pack://application:,,,/ProjectResources;component/ProjectResources/Dictionaries/StylesSearchBox.xaml"/&gt;
                  &lt;ResourceDictionary Source="pack://application:,,,/ProjectResources;component/ProjectResources/Dictionaries/StylesTreeView.xaml"/&gt;
                  &lt;ResourceDictionary Source="/PresentationFramework.Aero;component/themes/Aero.NormalColor.xaml"/&gt;
              &lt;/ResourceDictionary.MergedDictionaries&gt;
          &lt;/ResourceDictionary&gt;
      &lt;/Application.Resources&gt;
  </code></pre>
  
  <p>I have also added the reference to PresentationFramework.Aero.dll.</p>
  
  <p>So I don't understand why it cant find the defined theme.
  What is the problem with this definition? Did I miss anything else beside this definition to be able to use the theme?</p>
  
  <p><strong>SOLVED:</strong>
  As toumir said in his comment.
  You need to set the parameter </p>
  
  <blockquote>
    <p>Copy Local = true</p>
  </blockquote>
  
  <p>of the PresentationFramework.Aero DLL.
  By doing that the dll will be copied to the root directory of your program and it will the dll.</p>