title: Access the value of the TextBlock when it's bound
body: <p>I'm working on an app for WP7 but i have this small problem:</p>
  
  <pre><code>&lt;TextBlock Name="rName" 
             Text="{Binding LineOne2}" 
             TextWrapping="NoWrap" 
             Style="{StaticResource PhoneTextExtraLargeStyle}" /&gt;
  </code></pre>
  
  <p>I have this <code>Textblock</code> binding to <code>LineOne2</code>, I set up a tap event to launch another page when it gets tapped.
  The problem is, when I try to get the value of that text <code>rName.Text</code>, it shows that its unavailable.</p>
  
  <p>So I was wandering is there any possible way to get the value of that <code>TextBlock</code> to use it as parameter for a method in another page even if it was binding? Or is there any other way to do so? </p>
  
  <p>My list contains 2 textboxes and an image in a stackpanel.... I need to press in that textbox open a new page with the value of that textbox in that page value and as a parameter to a method.</p>
  
  <p>edit:</p>
  
  <pre><code>&lt;ListBox ItemsSource="{Binding Items1}" 
           Margin="14,149,8,8" 
           Foreground="#FF7A0100" 
           Grid.RowSpan="2"&gt;
    &lt;ListBox.ItemTemplate&gt;
      &lt;DataTemplate&gt;
          &lt;StackPanel Name="featuredPanel" 
                    Orientation="Horizontal" 
                    Margin="0,0,0,17" 
                    Height="105" 
                    Width="432" 
                    Tap="featuredPanel_Tap"&gt;
                    &lt;!--Replace rectangle with image--&gt;
            &lt;Image Height="100" 
                   Width="100" 
                   Source="{Binding ImagePath1}"&gt;
            &lt;/Image&gt;
            &lt;StackPanel Width="311"&gt;
              &lt;TextBlock x:Name="rName" 
                         Text="{Binding LineOne1}" 
                         TextWrapping="NoWrap" 
                         Style="{StaticResource PhoneTextExtraLargeStyle}" /&gt;
              &lt;TextBlock Text="{Binding LineTwo1}" 
                         TextWrapping="Wrap" 
                         Margin="12,-6,12,0" 
                         Style="{StaticResource PhoneTextSubtleStyle}" /&gt;
            &lt;/StackPanel&gt;
          &lt;/StackPanel&gt;
      &lt;/DataTemplate&gt;
    &lt;/ListBox.ItemTemplate&gt;
  &lt;/ListBox&gt;
  </code></pre>
  
  <p>Also I'm binding data from an XML file.</p>
  
  <p>I need to use the TextBox "rName" to get the value and use it to do a linq query on the xml file to get the addressa and phone number from that XML file and bind them to the Textboxes in the other page.</p>