<Window x:Class="TextDataBinding.Window1"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="TextDataBinding" Height="300" Width="300"
    >
    <Grid>

      <!-- Example 14-51. Text and data binding -->
      
      <TextBlock>
        Name:
        <TextBlock Text="{Binding FirstName}" />
        <TextBlock Text="{Binding LastName}" />
      </TextBlock>

      <!-- End of Example 14-51. -->


      <!-- The previous example is just a shorthand for this:
      
      Example 14-52. Text and data binding in full
      
      <TextBlock>
        <Run Text="Name: " />
        <InlineUIContainer>
          <TextBlock Text="{Binding FirstName}" />
        </InlineUIContainer>
        <Run Text=" " />
        <InlineUIContainer>
          <TextBlock Text="{Binding LastName}" />
        </InlineUIContainer>
      </TextBlock>
      
      End of Example 14-52
      -->
    </Grid>
</Window>
