title: The attached property Resources was not found in UserControl
body: <p>During adding resources for my user control I get the error above. What may be the problem ?</p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;UserControl x:Class="PartitionManager.DocStorageView"
               xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
               xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
               xmlns:WpfToolkit="http://schemas.microsoft.com/wpf/2008/toolkit"
               xmlns:System="clr-namespace:System;assembly=mscorlib"
               xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
               xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
               mc:Ignorable="d" 
               d:DesignHeight="300" d:DesignWidth="800"&gt;
      &lt;UserControl.Resources&gt;&lt;/UserControl.Resources&gt;
      &lt;WpfToolkit:DataGrid
          ItemsSource="{Binding Path=DocStorageInfos}"
          HorizontalScrollBarVisibility="Auto"  SelectionMode="Extended"
          CanUserAddRows="False" CanUserDeleteRows="False"
          CanUserResizeRows="False" CanUserSortColumns="False"
          AutoGenerateColumns="False" MaxWidth="750"&gt;
          &lt;WpfToolkit:DataGrid.Columns&gt;
              &lt;WpfToolkit:DataGridCheckBoxColumn
                  Header="Select"
                  Binding="{Binding Path=IsSelected}"/&gt;
              &lt;WpfToolkit:DataGridTextColumn
                  Header="InterestingName" 
                  Binding="{Binding Path=InterestingName}"/&gt;
          &lt;/WpfToolkit:DataGrid.Columns&gt;
      &lt;/WpfToolkit:DataGrid&gt;
  &lt;/UserControl&gt;
  </code></pre>