title: WPF/C# Bind Content from two Textboxes to a single label
body: <p>I've been trying to bind two textboxes to a single label so the label always update depending on the content of two textboxes. However without luck. I managed to solve how to bind a single one.</p>
  
  <p>by using</p>
  
  <pre><code>Content="{Binding Text,ElementName=PersonName,UpdateSourceTrigger=PropertyChanged}"
  </code></pre>
  
  <p>So it looks like this</p>
  
  <pre><code>&lt;UserControl x:Class="FitTracker.CreateTrackItem"
               xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
               xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
               xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
               xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
               xmlns:local="clr-namespace:FitTracker"
               mc:Ignorable="d" 
               d:DesignHeight="300" d:DesignWidth="300"&gt;
    &lt;Grid&gt;    
      &lt;TextBox Name="PersonName" HorizontalAlignment="Left" Height="23" Margin="10,77,0,0" TextWrapping="Wrap" Text="Name" VerticalAlignment="Top" Width="280" /&gt;
      &lt;TextBox Name="PersonLevel" HorizontalAlignment="Left" Height="23" Margin="10,105,0,0" TextWrapping="Wrap" Text="Level" VerticalAlignment="Top" Width="280"/&gt;
      &lt;Label Name="TrackDetails" Content="{Binding Text,ElementName=PersonName,UpdateSourceTrigger=PropertyChanged}" HorizontalAlignment="Left" Margin="10,133,0,0" VerticalAlignment="Top" Width="280" FontWeight="Bold" Background="#00000000" Foreground="White" /&gt;
    &lt;/Grid&gt;
  &lt;/UserControl&gt;
  </code></pre>
  
  <p>However I cannot do it with two text boxes. any ideas or guides that could help me on the right path.</p>
  
  <p>I've been searching around for some hours now.</p>