title: 'Element is already the child of another element' error in Silverlight App.xaml
body: <p>I keep getting a strange error inside my <code>App.xaml</code> file: </p>
  
  <blockquote>
    <p>Element is already the child of another element.</p>
  </blockquote>
  
  <p>My App.xaml file looks like this:</p>
  
  <pre><code>&lt;Application xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
               xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
               x:Class="Celerior.Annapurna.SL.App"&gt;
      &lt;Application.Resources&gt;
          &lt;ResourceDictionary&gt;
              &lt;ResourceDictionary.MergedDictionaries&gt;
                  &lt;ResourceDictionary Source="ProvisiorResourceDictionary.xaml"/&gt;
              &lt;/ResourceDictionary.MergedDictionaries&gt;
          &lt;/ResourceDictionary&gt;
      &lt;/Application.Resources&gt;
  &lt;/Application&gt;
  </code></pre>
  
  <p>The error is reported for the entire <code>ResourceDictionary</code> element (from lines 5 to 9).</p>
  
  <p><code>ProvisiorResourceDictionary.xaml</code> contains a number of styles and templates. Nothing exciting in my opinion.</p>
  
  <p>Does anyone know what is wrong?</p>
  
  <p>Kind regards,</p>
  
  <p>Ronald Wildenberg</p>