How to use a path data from a resource dictionary in UWP
<p>This is trivial thing but yet it does not work. </p>

<p>I have something like this (it is in its own folder)</p>

<pre><code>&lt;ResourceDictionary&gt;
    &lt;Path x:Key="Test"
          Stroke="Black"
          Fill="Gray" 
          Data="M 10,100 C 10,300 300,-200 300,100" /&gt;
&lt;/ResourceDictionary&gt;
</code></pre>

<p>Now I want to use it</p>

<pre><code>&lt;Page&gt;
    &lt;Page.Resources&gt;
        &lt;ResourceDictionary&gt;
            &lt;ResourceDictionary.MergeDictionaries&gt;
                &lt;ResourceDictionary Source="MyFolder/MyResourceDictionary.xaml/&gt;
            &lt;/ResourceDictionary.MergeDictionaries&gt;
        &lt;/ResourceDictionary&gt;
    &lt;/Page.Resources&gt;
    &lt;ContentPresenter Content="{StaticResource Test}"/&gt;
&lt;Page/&gt;
</code></pre>

<p>This will throw an exception, but I don't understand why. Exactly the same scenario in wpf works fine.</p>