<Window x:Class="CLRObjectBinding.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:CLRObjectBinding"
        mc:Ignorable="d"
        Title="MainWindow" Height="150" Width="300" FontSize="14">
    <Window.Background>
        <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
            <GradientStop Color="Black" Offset="0"/>
            <GradientStop Color="White" Offset="1"/>
        </LinearGradientBrush>
    </Window.Background>
    <Grid>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="Auto" />
            <ColumnDefinition />
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
        </Grid.RowDefinitions>
        <Label Foreground="White">Vorname:</Label>
        <Label Foreground="White" Grid.Row="1">Zuname:</Label>
        <TextBox Margin="6" Grid.Column="1" Text="{Binding FirstName}"/>
        <TextBox Margin="6" Grid.Row="1" Grid.Column="1" Text="{Binding LastName}"/>
        <Button Name="btnChange" Click="btnChange_Click" Grid.Row="2" Grid.Column="1" Margin="6">Person ändern</Button>
    </Grid>
</Window>
