What is the correct starting xaml for a file that will eventually become a repository for styles
<p>As I gradually begin to understand a little more about wpf's styles and data templates and how they can be reused So the sense of having a separate project with various stles and templates defined therein and referenced as a merged dictionary in the application(s) that need to use them makes sense.</p>

<p>I have looked at several posts here and on code project.  One particular one <a href="https://stackoverflow.com/questions/15249492/how-to-organize-resources-styles-in-a-complex-wpf-scenario">here</a> makes a great deal of sense, but every article I've looked at appears to omit one small point.</p>

<p>Lets say that I have a style defined like so:</p>

<pre><code>&lt;Style TargetType="dxb:BarButtonItem"
           x:Key="NewStBtnStyle"&gt;
        &lt;Setter Property="SuperTip"&gt;
            &lt;Setter.Value&gt;
                &lt;dx:SuperTip&gt;
                    &lt;dx:SuperTipHeaderItem Content="New" /&gt;
                    &lt;dx:SuperTipItem Content="Create a new record"
                                     Glyph="pack://application:,,,/FishTrackerProfessional;component/Resources/Images/32/New.png"&gt;
                        &lt;dx:SuperTipItem.LayoutStyle&gt;
                            &lt;Style TargetType="{x:Type dx:Items2Panel}"&gt;
                                &lt;Setter Property="Alignment"
                                        Value="Right" /&gt;
                                &lt;Setter Property="HorizontalIndent"
                                        Value="20" /&gt;
                            &lt;/Style&gt;
                        &lt;/dx:SuperTipItem.LayoutStyle&gt;
                    &lt;/dx:SuperTipItem&gt;
                    &lt;dx:SuperTipItemSeparator /&gt;
                    &lt;dx:SuperTipItem Content="Opens a new record entry form in a new window"&gt;
                        &lt;dx:SuperTipItem.ContentTemplate&gt;
                            &lt;DataTemplate&gt;
                                &lt;TextBlock FontFamily="Calibri"
                                           Foreground="Gray"
                                           FontSize="11"
                                           Text="{Binding}" /&gt;
                            &lt;/DataTemplate&gt;
                        &lt;/dx:SuperTipItem.ContentTemplate&gt;
                    &lt;/dx:SuperTipItem&gt;
                &lt;/dx:SuperTip&gt;
            &lt;/Setter.Value&gt;
        &lt;/Setter&gt;
    &lt;/Style&gt;
</code></pre>

<p>I can see that it will be useful, not just in one project but in several, and more so with a little adaptation It can be modified to produce similar sytles for different similar items.</p>

<p>Now my question is this.  I want to put a group of styles into a single file (myNewStyles.xaml).  I'm familirar with a window beging </p>

<pre><code>&lt;window xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
</code></pre>

<p>or a user control beginning</p>

<pre><code>&lt;userControl xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
</code></pre>

<p>I had thought that the following would be the correct syntax to begin a xaml file containing styles</p>

<pre><code>&lt;ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
</code></pre>

<p>But <code>IntelliSense</code> tells me that</p>

<blockquote>
  <p>a value of type 'Style' cannot be added to a collection or dictionary
  of type 'Resource Dictionary'.</p>
</blockquote>

<p>So what is the correct way to start such a xaml file?</p>