title: MenuItem icon returns collection
body: <p>When I have a following code, it all works fine:
  </p>
  
  <pre><code>    &lt;Image x:Key="Icons" x:Shared="false"
       Source="{Binding Path=Icon}" Height="16px" Width="16px"/&gt;
  
      &lt;Style x:Key="MenuItemStyle" TargetType="MenuItem" &gt;
          &lt;Setter Property="MenuItem.ItemsSource" Value="{Binding Children}"/&gt;
          &lt;Setter Property="MenuItem.Header" Value="{Binding Text}"/&gt;
          &lt;Setter Property="MenuItem.IsEnabled" Value="{Binding IsEnabled}"/&gt;
          &lt;Setter Property="MenuItem.Icon" Value="{StaticResource Icons}"/&gt;            
      &lt;/Style&gt;
  </code></pre>
  
  <p>But I have to load xaml from external source and <code>WPF</code> has a bug that does not allow <code>x:Shared=</code> in that case. So I made Resource dictionary with <code>x:Name=Icons</code> that is compiled internally (Action is database table that has string property Icon and there is path to the Icon):</p>
  
  <pre><code>&lt;Image x:Key="Icons" x:Shared="False"
       Source="{Binding Path=Action.Icon}" Height="16px" Width="16px"/&gt;
  </code></pre>
  
  <p>and the code now looks</p>
  
  <pre><code>&lt;ResourceDictionary x:Key="IkoniceDict" Source="/MVVM_App;component/View/iconimage.xaml"/&gt;
  &lt;Style x:Key="MenuItemStyle" TargetType="MenuItem"&gt;
          &lt;Setter Property="MenuItem.Icon" Value="{Binding Source={StaticResource Icons}}"/&gt;
  </code></pre>
  
  <p>Problem is that now I get (collection) instead of image:</p>
  
  <p><a href="https://i.stack.imgur.com/zD9cD.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/zD9cD.png" alt="enter image description here"></a></p>
  
  <p>Need help, please!</p>