title: Retrieve text from a textbox in visual studio ( windows store app)
body: <p>In windows store app( express 2013 for windows), i have created a textbox. Now i want to capture or retrieve the text entered by the user for further operations ( specifically, assign the user text to a string).
  I tried this :</p>
  
  <pre><code>string input = InputBox.Text;  
  </code></pre>
  
  <p>in the event handler for textbox.But this doesn't seem to work.</p>
  
  <p>Any help is welcome.</p>
  
  <pre><code>&lt;TextBox Text="TextBox"
               x:Name="InputBox"
               Grid.Row="1"
               HorizontalAlignment="Right"
               VerticalAlignment="Center" 
               Width="402" 
               Height="48"
               FontFamily="Arial Black"
               FontSize="28"
               FontWeight="Bold"
               VerticalContentAlignment="Center"
               HorizontalContentAlignment="Left" Margin="0,77,0,84"
               TextAlignment="Left" TextChanged="InputBox_TextChanged"
               /&gt;
  </code></pre>
  
  <p>C# code follows :</p>
  
  <pre><code>private void InputBox_TextChanged(object sender, TextChangedEventArgs e)
      {
          string input = InputBox.Text;
      }
  </code></pre>