title: Why can I not assign a Name value to UserControls that are scoped as Internal in WPF?
body: <p>I have a UserControl, which I have set to Internal as such:</p>
  
  <pre><code>UserControl x:Class="ClassName"
               x:ClassModifier="internal"</code></pre>
  
  <p>And it's matching .cs file:</p>
  
  <pre><code> internal partial class ClassName : UserControl
      {
          public ClassName()
          {
              InitializeComponent();
          }
      }</code></pre>
  
  <p>Now, when I try to use the control on a window, like this:</p>
  
  <pre><code> uControls:ClassName x:Name="instanceName" Margin="0,0,8,0" Height="60" VerticalAlignment="Top" Width="60" HorizontalAlignment="Right" MouseLeftButtonUp="instanceName_MouseLeftButtonUp" Cursor="ScrollNW" </code></pre>
  
  <p>I get an error stating:</p>
  
  <pre><code>The type 'ClassName' cannot have a Name attribute. Value types and types without a default constructor can be used as items within a ResourceDictionary. Line 12 Position 44.</code></pre>
  
  <p>If I change the access modifiers to public, all works as expected.</p>
  
  <p>Why can I not have internal User Controls?</p>