title: WPF Binding TextBlock value to display SelectedItem in ComboBox
body: <p>I have a <code>ComboBox</code> and a couple of <code>TextBlock</code> fields.</p>
  
  <p>I want to display the properties of a <code>SelectedItem</code> from the <code>ComboBox</code> on those <code>Textblock's</code>. <a href="https://i.stack.imgur.com/vu62l.png" rel="nofollow noreferrer">Image</a></p>
  
  <p>So that when I choose one of multiple user's the properties in the <code>TextBlock</code> will update to those of the <code>SelectedItem</code>. I have found an <a href="https://stackoverflow.com/questions/4493403/silverlight-textblock-binding-to-selecteditem-in-combobox">example</a>, although it is using silverlight, and does not work entirely.</p>
  
  <pre><code>        &lt;ComboBox Grid.Row="0"
                    Grid.Column="0"
                    VerticalAlignment="Bottom"
                    VerticalContentAlignment="Center"
                    HorizontalContentAlignment="Left"
                    Margin="0"
                    Height="40"
                    Name="ComboBox" 
                    ItemsSource="{Binding UserModels}" 
                    SelectedItem="{Binding EnteredUserModel, Mode=TwoWay}"&gt;
              &lt;ComboBox.ItemTemplate&gt;
                  &lt;DataTemplate&gt;
                      &lt;TextBlock Text="{Binding FirstName}"
                                 Style="{StaticResource ResourceKey=ComboBoxItemTextBlock}"/&gt;
                  &lt;/DataTemplate&gt;
              &lt;/ComboBox.ItemTemplate&gt;
          &lt;/ComboBox&gt;
      &lt;/Grid&gt;
  
  
          &lt;TextBlock Grid.Row="1"
                     Grid.Column="0"
                     Margin="0 10 0 10" &gt;
              &lt;Run Text="{DynamicResource firstName}" /&gt;
              &lt;Run Text=": " /&gt;
              &lt;Run Text="{Binding ElementName=ComboBox, Path=SelectedItem, UpdateSourceTrigger=PropertyChanged}" /&gt;
          &lt;/TextBlock&gt;
  </code></pre>
  
  <p>This is what I've tried. I added <code>Name</code> to the <code>ComboBox</code> so that I can access it's <code>SelectedItem</code> in my <code>TextBlock</code>. I need to get the SelectedItem.firstname, etc. At this stage i can only access the entire objects. </p>
  
  <p>Am I missing some useful binding? </p>