title: display xaml image in wpf
body: <p>I have a problem getting vector image to display on a page</p>
  
  <p>This should work, shouldn't it? </p>
  
  <pre><code>&lt;ContentControl&gt;
      &lt;ContentControl.Resources&gt;
          &lt;ResourceDictionary Source="./Assets/vectorImage.xaml"&gt;&lt;/ResourceDictionary&gt;
      &lt;/ContentControl.Resources&gt;
  &lt;/ContentControl&gt;
  </code></pre>
  
  <p>I'm afraid that the problem is in xaml image file which was created from bitmap with Inkscape. vectorImage.xaml is quite large (136KB) so i won't copy the whole file, but it starts like this</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;Viewbox xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" Stretch="Uniform"&gt;
  &lt;Canvas Name="svg2985" Width="126" Height="198"&gt;
      &lt;Canvas.Resources/&gt;
      ...
  </code></pre>
  
  <p>EDIT:</p>
  
  <p><code>&lt;ResourceDictionary Source="./Assets/vectorImage.xaml"&gt;&lt;/ResourceDictionary&gt;</code> has red underline and hint : Inheritor of the ResourceDictionary is expected.</p>
  
  <p>When i run the application i get following excetion</p>
  
  <pre><code>An exception of type 'Windows.UI.Xaml.Markup.XamlParseException' occurred in app.exe but was not handled in user code
  
  WinRT information: Failed to assign to property 'Windows.UI.Xaml.ResourceDictionary.Source'. [Line: 134 Position: 68]
  </code></pre>
  
  <p>EDIT:</p>
  
  <p>One thing i forgot to mention is that project is windows store app</p>