Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I had the exact same error with the added caveat that I was also using MVVM-Light. It turns out that the problems I was having stemmed from an <a href="http://forums.silverlight.net/t/231763.aspx/1" rel="nofollow">incorrect location of the Global View Model Locator</a> definition in my <strong>app.xaml</strong> file.</p> <p>This is how my <strong>app.xaml</strong> was configured. Notice the location of the Global View Model Locator within the <strong>Application.Resources</strong> tag. This is incorrect and caused me to have design time errors within Visual Studios. </p> <pre><code>&lt;Application.Resources&gt; &lt;ResourceDictionary&gt; &lt;ResourceDictionary.MergedDictionaries&gt; &lt;ResourceDictionary Source="Assets/Styles.xaml"/&gt; &lt;ResourceDictionary Source="Skins/MainSkin.xaml" /&gt; &lt;/ResourceDictionary.MergedDictionaries&gt; &lt;/ResourceDictionary&gt; &lt;!--Global View Model Locator--&gt; &lt;vm:ViewModelLocator x:Key="Locator" d:IsDataSource="True" /&gt; &lt;/Application.Resources&gt; </code></pre> <p>The code below is correct. Notice that the Global View Model Locator is <em>inside</em> the <strong>ResourceDictionary</strong> tag. Once I moved the Global View Model Locator inside the <strong>resourceDictionary</strong> tag my design time errors went away.</p> <pre><code>&lt;Application.Resources&gt; &lt;ResourceDictionary&gt; &lt;ResourceDictionary.MergedDictionaries&gt; &lt;ResourceDictionary Source="Assets/Styles.xaml"/&gt; &lt;ResourceDictionary Source="Skins/MainSkin.xaml" /&gt; &lt;/ResourceDictionary.MergedDictionaries&gt; &lt;!--Global View Model Locator--&gt; &lt;vm:ViewModelLocator x:Key="Locator" d:IsDataSource="True" /&gt; &lt;/ResourceDictionary&gt; &lt;/Application.Resources&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload