title: UserControl element inaccessible due to its protection level
body: <p>I am writing a Windows Phone 8.1 App (WinRT).</p>
  
  <p><strong>my user control:
  XAML:</strong></p>
  
  <pre><code>&lt;UserControl x:Name="LoadingProgressBarPage"
  x:Class="Project1.Custom.General.UserControls.LoadingOverlayFullScreen"
  xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  xmlns:local="using:Merakyahoga.com.Custom.General.UserControls"
  xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
   mc:Ignorable="d"
  FontFamily="{StaticResource PhoneFontFamilyNormal}"
  
  Foreground="{x:Null}"
  d:DesignHeight="800" d:DesignWidth="480" &gt;
  
  &lt;Grid x:Name="LayoutRoot"&gt;
      &lt;Grid.RowDefinitions&gt;
          &lt;RowDefinition Height="1*"/&gt;
          &lt;RowDefinition Height="1*"/&gt;
          &lt;RowDefinition Height="1*"/&gt;
      &lt;/Grid.RowDefinitions&gt;
      &lt;StackPanel 
          Name="LayoutRoot_StackPanelMain"
          Grid.Row="1"
                  Orientation="Vertical"&gt;
          &lt;ProgressBar Name="ProgressBar" 
                       IsIndeterminate="True"
                       Foreground="{StaticResource DefaultTheme_DarkBlueColor}" 
  
                       Height="50" 
                       Width="480" 
                       VerticalAlignment="Center"/&gt;
  
          &lt;StackPanel Name="LayoutRoot_SubStackPanel"
                      Orientation="Horizontal"
                      HorizontalAlignment="Center"
                      VerticalAlignment="Center"&gt;
  
              &lt;Image Name="ImageHolder_Main"
                     Width="54"&gt;    
              &lt;/Image&gt;
  
              &lt;TextBlock Name="ProgressBarText"
                     Text="Please Wait.." 
                         Margin="10,0,0,0"
                     FontWeight="Normal"
                     HorizontalAlignment="Center"
                         FontSize="18"
                         Foreground="{StaticResource DefaultTheme_DarkBlueColor}" VerticalAlignment="Center"/&gt;
  
          &lt;/StackPanel&gt;
  
      &lt;/StackPanel&gt;
  &lt;/Grid&gt;
  </code></pre>
  
  <p></p>
  
  <p><strong>cs:</strong></p>
  
  <pre><code>namespace Project1.Custom.General.UserControls
  {
      public partial class LoadingOverlayFullScreen : UserControl
      {
  
  
          public LoadingOverlayFullScreen()      
          {
              InitializeComponent()
  
              //WINRT:
              this.LayoutRoot.Height = Window.Current.Bounds.Height;
              this.LayoutRoot.Width = Window.Current.Bounds.Width;
  
          }
  
      }
  
  }
  </code></pre>
  
  <p><strong>In my mainpage.cs:</strong></p>
  
  <pre><code>LoadingOverlayFullScreen LoadingOverlayFullScreenObject = new LoadingOverlayFullScreen();
          //test:
  LoadingOverlayFullScreenObject.ProgressBarText = "Hello"; //ERROR Here &gt;&gt; **element inaccessible due to its protection level**
  </code></pre>