<Window
    x:Class="Client.View.LoginView"
    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:local="clr-namespace:Client.View"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    Name="LoginWindow"
    Width="400"
    Height="400"
    Icon="/Client;component/Img/icon.png"
    ResizeMode="NoResize"
    mc:Ignorable="d">
    <Grid Background="#FFD6DFE1">
        <Grid.RowDefinitions>
            <RowDefinition Height="80" />
            <RowDefinition Height="*" />
            <RowDefinition Height="80" />
            <RowDefinition Height="40" />
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="*" />

        </Grid.ColumnDefinitions>
        <Label
            Grid.Row="0"
            Grid.Column="0"
            Margin="0,0,110,0"
            HorizontalAlignment="Center"
            VerticalAlignment="Stretch"
            VerticalContentAlignment="Center"
            Content="DV"
            FontFamily="Ethnocentric"
            FontSize="36"
            FontStyle="Italic"
            FontWeight="Bold">
            <Label.Foreground>
                <RadialGradientBrush>
                    <GradientStop Offset="1" Color="#FF32465F" />
                    <GradientStop Color="#FF0375FF" />
                </RadialGradientBrush>
            </Label.Foreground>
        </Label>
        <Label
            Grid.Row="0"
            Grid.Column="0"
            Margin="80,5,0,0"
            HorizontalAlignment="Center"
            VerticalAlignment="Stretch"
            VerticalContentAlignment="Center"
            Content="SOFT"
            FontFamily="Ethnocentric"
            FontSize="26">
            <Label.Foreground>
                <RadialGradientBrush>
                    <GradientStop Offset="1" Color="#FF32465F" />
                    <GradientStop Color="#FF1F579B" />
                </RadialGradientBrush>
            </Label.Foreground>
        </Label>

        <Button
            Grid.Row="2"
            Width="150"
            Height="30"
            HorizontalAlignment="Center"
            VerticalAlignment="Center"
            HorizontalContentAlignment="Center"
            Background="#FF065393"
            BorderBrush="#FF24334D"
            BorderThickness="0"
            Command="{Binding LoginCommand}"
            CommandParameter="{Binding ElementName=LoginWindow}"
            Content="PŘIHLÁSIT"
            FontSize="18"
            FontWeight="Bold"
            Foreground="White"
            IsDefault="True" />

        <TextBox
            Grid.Row="1"
            Width="170"
            Height="25"
            Margin="0,-40,0,0"
            HorizontalAlignment="Center"
            VerticalAlignment="Center"
            HorizontalContentAlignment="Left"
            VerticalContentAlignment="Center"
            FontSize="14"
            MaxLength="16"
            Text="{Binding UserName, Mode=TwoWay}"
            TextWrapping="Wrap" />

        <PasswordBox
            Name="PasswordBoxElement"
            Grid.Row="1"
            Width="170"
            Height="25"
            Margin="0,60,0,0"
            HorizontalAlignment="Center"
            VerticalAlignment="Center"
            HorizontalContentAlignment="Left"
            VerticalContentAlignment="Center"
            FontSize="14"
            MaxLength="16"
            PasswordChanged="PasswordBoxElement_PasswordChanged"
            PasswordChar="*" />

        <Label
            Grid.Row="1"
            Margin="112,27,0,0"
            HorizontalAlignment="Left"
            VerticalAlignment="Top"
            Content="Login"
            FontWeight="Bold"
            Foreground="#FF24334D" />

        <Label
            Grid.Row="1"
            Margin="112,78,0,0"
            HorizontalAlignment="Left"
            VerticalAlignment="Top"
            Content="Heslo"
            FontWeight="Bold"
            Foreground="#FF24334D" />

        <Label
            Grid.Row="4"
            HorizontalAlignment="Stretch"
            HorizontalContentAlignment="Center"
            VerticalContentAlignment="Center"
            Background="#FF065393"
            Content="2019 © DVsoft"
            FontSize="12"
            Foreground="White" />
    </Grid>
</Window>
