title: How to add multiple class file in one XAML file in WPF
body: <p>I am designing a <strong>UI Library</strong> and  I want to add <strong>two</strong> <code>C# file</code> to a <code>XAML</code> file so that in one file I can  define only event Handler to be used in that Xaml file and in another file i can define some other UI related Style for controls. And i want my  <code>xaml</code> file to have access to my both <code>C#</code> file class directly.</p>
  
  <p>I am doing something like this using <code>x:Class</code>:</p>
  
  <p>For example:</p>
  
  <p>I want to add a <code>MainWindow.cs</code> file to my XAML file:</p>
  
  <pre><code>&lt;Window
      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      x:Class="TemplateLibrary.MainWindow"&gt;
  </code></pre>
  
  <p>But unfortunately XAML supports for only one class to get added to my XAML. Is there some way to add multiple C# file to a XAML file.</p>