<Window x:Class="dealer.AddOwnerWindow"
    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:dealer"
    mc:Ignorable="d"
    Title="Pridat vlastnika" Height="400" Width="400"
    WindowStartupLocation="CenterOwner"
    ResizeMode="NoResize">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="*" />
            <RowDefinition Height="Auto" />
        </Grid.RowDefinitions>

        <ScrollViewer Grid.Row="0" VerticalScrollBarVisibility="Auto">
            <StackPanel Margin="20">
                <TextBlock Text="Novy vlastnik"
                    FontSize="20"
                    FontWeight="Bold"
                    Margin="0,0,0,20"
                    HorizontalAlignment="Center" />

                <TextBlock Text="Jmeno:" FontSize="14" Margin="0,5" />
                <TextBox Name="JmenoTextBox"
                    FontSize="14"
                    Padding="5"
                    Margin="0,0,0,10" />

                <TextBlock Text="Prijmeni:" FontSize="14" Margin="0,5" />
                <TextBox Name="PrijmeniTextBox"
                    FontSize="14"
                    Padding="5"
                    Margin="0,0,0,10" />

                <TextBlock Text="Telefon:" FontSize="14" Margin="0,5" />
                <TextBox Name="TelefonTextBox"
                    FontSize="14"
                    Padding="5"
                    Margin="0,0,0,10" />

                <TextBlock Text="Email:" FontSize="14" Margin="0,5" />
                <TextBox Name="EmailTextBox"
                    FontSize="14"
                    Padding="5"
                    Margin="0,0,0,10" />

                <TextBlock Text="Adresa:" FontSize="14" Margin="0,5" />
                <TextBox Name="AdresaTextBox"
                    FontSize="14"
                    Padding="5"
                    TextWrapping="Wrap"
                    AcceptsReturn="True"
                    Height="60"
                    Margin="0,0,0,10" />
            </StackPanel>
        </ScrollViewer>

        <Border Grid.Row="1"
            BorderBrush="LightGray"
            BorderThickness="0,1,0,0"
            Background="WhiteSmoke">
            <StackPanel Orientation="Horizontal"
                HorizontalAlignment="Center"
                Margin="0,15">
                <Button Name="SaveButton"
                    Content="Ulozit"
                    Width="100"
                    Height="35"
                    Margin="5"
                    FontSize="14"
                    Click="SaveButton_Click" />
                <Button Name="CancelButton"
                    Content="Zrusit"
                    Width="100"
                    Height="35"
                    Margin="5"
                    FontSize="14"
                    Click="CancelButton_Click" />
            </StackPanel>
        </Border>
    </Grid>
</Window>
