title: Different base class in the XAML file
body: <p>I have a class called <code>BIFUserControl</code> which inherits from <code>UserControl</code> class. Now I am designing a new user control called <code>BIFText</code> which inherits from <code>BIFUserControl</code> class. So, I changed the XAML file called <code>BIFText.xaml</code> as follows :</p>
  
  <pre><code>&lt;base:BIFUserControl 
                xmlns:base="clr-namespace:BaseInputFramework.BaseWidgets;assembly=BaseInputFramework"
                x:Class="BIFWidgetLibrary.Text.BIFText"
                xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  
                xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
  
                xmlns:mp="clr-namespace:Microsoft.Multipoint.Sdk.Controls;assembly=Microsoft.Multipoint.Sdk.Controls"
                xmlns:utils="clr-namespace:BaseInputFramework.BaseWidgets.Utils;assembly=BaseInputFramework"
  
                mc:Ignorable="d" 
                d:DesignHeight="150" d:DesignWidth="150"&gt;
       &lt;Grid&gt;
  
  
       &lt;/Grid&gt; &lt;/base:BIFUserControl&gt;
  </code></pre>
  
  <p>And then I changed my <code>BIFText.xaml.cs</code> file as follows:</p>
  
  <pre><code> namespace BIFWidgetLibrary.Text {
       public partial class BIFText : BIFUserControl
       {
           public BIFText()
           {
               InitializeComponent();
           }
       } }
  </code></pre>
  
  <p>But now when I try to build the project, I get the following error message :
  <code>'BaseInputFramework.BaseWidgets.BIFUserControl' cannot be the root of a XAML file because it was defined using XAML. Line 2 Position 14.</code></p>
  
  <p>Can someone please help me with this error. Thanks in advance.</p>