title: Why won't my xaml see my code behind?
body: <p>I am getting the following error:</p>
  
  <blockquote>
    <p>The name MinMaxOverlay does not exist in the namespace "clr-namespace:Shadow_App".</p>
  </blockquote>
  
  <p>Here are my xaml and code-behind snippets. Please be warned that the code I use is much much longer, but I removed only the relevant portions. The error when all of the code (1000's of lines) is still the same.</p>
  
  <pre><code>&lt;UserControl xmlns:igWPF="http://schemas.infragistics.com/xaml/wpf"  
               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:local="http://schemas.AvalonControls/AvalonControlsLibrary/Controls"
               xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
               xmlns:xctk="http://schemas.xceed.com/wpf/xaml/toolkit"
               x:Class="Shadow_App.MainView"
               xmlns:myLocal="clr-namespace:Shadow_App"
               mc:Ignorable="d" Height="900" Width="1000" x:Name="window"&gt;
      &lt;Border BorderBrush="Black" BorderThickness="1"&gt;
          &lt;Grid&gt;
              &lt;Border BorderBrush="Black" BorderThickness="1"&gt;
                  &lt;Grid Background="Black" Margin="0,50,-4,-1" Width ="1000" HorizontalAlignment="Left" Height="847" VerticalAlignment="Top"&gt;
                      &lt;Grid.ColumnDefinitions&gt;
                          &lt;ColumnDefinition/&gt;
                      &lt;/Grid.ColumnDefinitions&gt;
                      &lt;myLocal:MinMaxOverlay/&gt;
                  &lt;/Grid&gt;
              &lt;/Border&gt;
          &lt;/Grid&gt;
      &lt;/Border&gt;
  
  &lt;/UserControl&gt;
  </code></pre>
  
  <pre class="lang-csharp prettyprint-override"><code>using System.Windows.Controls;
  using Bloomberglp.AppPortalApi;
  
  namespace Shadow_App
  {
      [BlpApplication]
      public partial class MainView : UserControl
      {
          public MainView()
          {
              InitializeComponent();
          }
      }
      public class ChartOverlay:UIElementCollection
      {
      }
      public class MinMaxOverlay : ChartOverlay
      {
      }
  }
  </code></pre>