title: QualifierValues.MapChanged Crashes App
body: <p>I'm using the <code>ResourceManager.Current.DefaultContext.QualifierValues.MapChanged</code> event to detect language changes while my app is running. This works fine, but I get a warning:</p>
  
  <blockquote>
    <p>'ResourceManager.DefaultContext.get' is obsolete: 'DefaultContext may be altered or unavailable for releases after Windows 8.1. Instead, use ResourceContext.GetForCurrentView.</p>
  </blockquote>
  
  <p>I switch my app to <code>ResourceContext.GetForCurrentView().QualifierValues.MapChanged</code> instead but the app now crashes when starting up. I don't get any exception breaks and I get a separate Visual Studio window that pops up to debug and the only option is a new instance of Visual Studio.</p>
  
  <p>What is wrong and how do I fix this?</p>
  
  <p>Failing code example:</p>
  
  <pre><code>// App.xaml.cs
  
  protected async override Task OnInitializeAsync( IActivatedEventArgs args )
  {
      // Doesn't work. Yes this is in an async method...
      ResourceContext.GetForCurrentView().QualifierValues.MapChanged += QualifierValuesMapChanged;
  
      // But this is the next line and works fine.
      Dispatcher.Initialize();
  
      // This works just fine.
      ResourceContext.GetForViewIndependentUse().QualifierValues.MapChanged += QualifierValuesMapChanged;
  
      // So does this.
      ResourceManager.Current.DefaultContext.QualifierValues.MapChanged += QualifierValuesMapChanged;
  }
  </code></pre>