title: WPF: OnApplyTemplate is not called anymore when I moved code into another DLL
body: <p>Let's try to explain it clearly.</p>
  
  <p>I've got a custom control built as a WPF application and it works fine. I've moved all the code into a external DLL. After this change, when I load the application, the method <strong>OnApplyTemplate()</strong> is not called any more and the control is not rendered either</p>
  
  <ul>
  <li>I've try with <em>Generic.xaml</em> file is into a <em>Themes</em> directory (with capital <em>T</em>) in the root of the DLL which has the control and/or a <em>Themes</em> directory into the StartUp project.</li>
  <li>If this info is important here's where I've found the control: <a href="http://www.codeproject.com/KB/WPF/WPFOutlookCalendar.aspx" rel="nofollow">http://www.codeproject.com/KB/WPF/WPFOutlookCalendar.aspx</a></li>
  <li>The settings of the project is
  <ul>
  <li>Output type: <strong>Class Library</strong></li>
  <li>Target framework: <strong>.Net Framework 4</strong></li>
  </ul></li>
  <li>I've create a simple DLL project and I've added the references manually</li>
  </ul>
  
  <p>Do you have any idea about the solution?</p>
  
  <p>Thanks in advance...</p>