title: CustomControl TextBox is inaccesible
body: <p>I'm developing Windows 8 Tablet application</p>
  
  <p>This is my custom user control:</p>
  
  <pre><code>&lt;Grid&gt;
      &lt;TextBox x:Name="Points" Visibility="Collapsed" IsHitTestVisible="False" Grid.ColumnSpan="3" Grid.Column="4" HorizontalAlignment="Left" Margin="48,10,0,0" Grid.Row="1" TextWrapping="Wrap" Text="0" VerticalAlignment="Top" TextChanged="TextBox_TextChanged"/&gt;
  &lt;/Grid&gt;
  </code></pre>
  
  <p>I placed on the MainPage form:</p>
  
  <pre><code>&lt;local:MyUserControl1 x:Name="Test" HorizontalAlignment="Left" Margin="280,493,0,0" VerticalAlignment="Top" Width="584" Height="166"/&gt;
  </code></pre>
  
  <p>In C# (MAinPage.xaml.cs):</p>
  
  <pre><code>Test.Points.Text = "";
  </code></pre>
  
  <p>Error:</p>
  
  <pre><code>Gamification.MyUserControl1.Points' is inaccessible due to its protection level
  </code></pre>
  
  <p>In Windows Phone 8 i didn't have those problems...</p>
  
  <p><strong>How to solve it?</strong></p>
  
  <p><strong>EDIT 2:</strong></p>
  
  <p>Control was added: Right click -> Add -> New item -> User control</p>
  
  <p>Full Control XAML:</p>
  
  <pre><code>&lt;UserControl
  x:Class="Gamification.MyUserControl1"
  xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  xmlns:local="using:Gamification"
  xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  mc:Ignorable="d"
  d:DesignHeight="200"
  d:DesignWidth="800"&gt;
  
  &lt;Grid&gt;
      &lt;TextBox x:Name="Points" Visibility="Collapsed" IsHitTestVisible="False" Grid.ColumnSpan="3" Grid.Column="4" HorizontalAlignment="Left" Margin="48,10,0,0" Grid.Row="1" TextWrapping="Wrap" Text="0" VerticalAlignment="Top" TextChanged="TextBox_TextChanged"/&gt;
  &lt;/Grid&gt;
  &lt;/UserControl&gt;
  </code></pre>
  
  <p>Full Control C#:</p>
  
  <pre><code>using System;
  using System.Collections.Generic;
  using System.IO;
  using System.Linq;
  using Windows.Foundation;
  using Windows.Foundation.Collections;
  using Windows.UI.Xaml;
  using Windows.UI.Xaml.Controls;
  using Windows.UI.Xaml.Controls.Primitives;
  using Windows.UI.Xaml.Data;
  using Windows.UI.Xaml.Input;
  using Windows.UI.Xaml.Media;
  using Windows.UI.Xaml.Navigation;
  
  namespace Gamification
  {
  public sealed partial class MyUserControl1 : UserControl
  {
      public MyUserControl1()
      {
          this.InitializeComponent();
      }
  
      private void TextBox_TextChanged(object sender, TextChangedEventArgs e)
      {
  
      }
  }
  }
  </code></pre>
  
  <p>Main page XAML:</p>
  
  <pre><code>&lt;Page
  x:Class="Gamification.MainPage"
  xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  xmlns:local="using:Gamification"
  xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  mc:Ignorable="d"&gt;
  
  &lt;Grid Background="{StaticResource ApplicationPageBackgroundThemeBrush}"&gt;
      &lt;local:MyUserControl1 x:Name="Test" HorizontalAlignment="Left" Margin="280,493,0,0" VerticalAlignment="Top" Width="584" Height="166"/&gt;
      &lt;Button Content="Button" HorizontalAlignment="Left" Margin="670,692,0,0" VerticalAlignment="Top" Click="Button_Click"/&gt;
  &lt;/Grid&gt;
  &lt;/Page&gt;
  </code></pre>
  
  <p>Main Page C#:</p>
  
  <pre><code>private void Button_Click(object sender, RoutedEventArgs e)
      {
          Test.Points.Text = "";
      }
  </code></pre>