<Window x:Class="SimpleBinding.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        xmlns:local="clr-namespace:SimpleBinding"
        mc:Ignorable="d"
      Title="SimpleBinding" Height="230" Width="300" FontSize="14">
    <Window.Background>
        <LinearGradientBrush EndPoint="1,0.5" StartPoint="0,0.5">
            <GradientStop Color="Black" Offset="0" />
            <GradientStop Color="White" Offset="1" />
        </LinearGradientBrush>
    </Window.Background>
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition />
        </Grid.RowDefinitions>
        <TextBox Margin="6 6 6 0" Name="textBox1" Text="{Binding ElementName=listBox1, Path=SelectedItem.Content}"/>
        <ListBox Grid.Row="1" Margin="6" Name="listBox1" SelectedIndex="0">
            <ListBoxItem>Michael</ListBoxItem>
            <ListBoxItem>Gerald</ListBoxItem>
            <ListBoxItem>Franz</ListBoxItem>
            <ListBoxItem>Ralf</ListBoxItem>
            <ListBoxItem>Sebastian</ListBoxItem>
            <ListBoxItem>Thomas</ListBoxItem>
            <ListBoxItem>Friedhelm</ListBoxItem>
            <ListBoxItem>Karsten</ListBoxItem>
        </ListBox>
    </Grid>
</Window>
