title: DataContext is null when binding to MVVMLight ViewModelLocator Path in Visual Studio 2015
body: <p>Since Visual Studio 2015 is in RC status I'm not sure if I've found a bug or I'm doing something wrong with my project.</p>
  
  <p>I've created a Viewmodel Locator with MVVM Light and exposed static properties that return the instance of each viewmodel. The locator is registered as a static resource in the app.xaml.</p>
  
  <p>Usually I'll bind this in the Page Xaml with a line like this:</p>
  
  <pre><code>DataContext="{Binding Path=MyViewModel, Source={StaticResource ViewModelLocator}}"
  </code></pre>
  
  <p>However, while I've never had a problem with this working before trying it in VS2015, it is not working in my new project that I am creating for Windows 10.</p>
  
  <p>When I run the project, DataContext is null in the Page, even though it is clearly assigned in the XAML as I've done with dozens of other projects. I checked and the ViewModelLocator static resource is created, initialized, and its MyViewModel property also contains the ViewModel I want. so there's definitely no null references in the VM or the Locator, but for some reason that XAML declaration that binds it to the DataContext of the page appears to be ignored...</p>
  
  <p>I set a break point in the static property getter for MyViewModel in the locator and it is never called...</p>
  
  <p>So I'm not sure if this is a problem with VS2015, MVVM Light, Windows 10 SDK, or Windows 10 itself (current build 10162)...</p>
  
  <p>has anyone else experienced this problem? </p>