title: XamlParseException when using UserControl from class library dll
body: <p>I have created a library which has a Popup UserControl <a href="https://stackoverflow.com/questions/19032750/how-to-center-a-popup-in-window-windows-store-apps">similar to the one here</a>.</p>
  
  <p>When I create a fresh Universal Windows App and create the same UserControl inside an app and open the popup, it opens.</p>
  
  <p>But if I create a Class Library and create the same UserControl inside it and try to use it (by opening the popup) inside an app, I get a XamlParseException.</p>
  
  <p>It is as follows - </p>
  
  <blockquote>
    <p>Windows.UI.Xaml.Markup.XamlParseException occurred<br>
        HResult=-2144665590<br>
        Message=XAML parsing failed.<br>
        Source=Windows<br>
        StackTrace:<br>
           at Windows.UI.Xaml.Application.LoadComponent(Object component, Uri resourceLocator, ComponentResourceLocation
    componentResourceLocation)<br>
           at PopupTestLibrary.MyUserControl1.InitializeComponent()</p>
  </blockquote>
  
  <p>I am not able to understand exactly why this is happening, since the code works fine when not called from an external class library.</p>
  
  <p>Some Questions I found to be similar to mine, here on SO -</p>
  
  <p><a href="https://stackoverflow.com/questions/12895116/xamlparseexception-when-consuming-a-page-from-a-library">XamlParseException when consuming a Page from a library</a></p>
  
  <p><a href="https://stackoverflow.com/questions/32950097/cannot-instantiate-usercontrol-from-another-assembly-resource-cannot-be-found/32962744#32962744">Cannot instantiate UserControl from another assembly</a></p>
  
  <p>All help is appreciated!</p>