<Window
    x:Class="Client.View.ChangePasswordView"
    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"
    x:Name="ChangePasswordWindow"
    Title=""
    Width="270"
    Height="330"
    Icon="/Client;component/Img/icon.png"
    ResizeMode="NoResize"
    mc:Ignorable="d">

    <Grid Background="#FFD6DFE1">
        <Rectangle
            Grid.Row="0"
            Grid.Column="0"
            Grid.ColumnSpan="3"
            Height="40"
            HorizontalAlignment="Stretch"
            VerticalAlignment="Top">
            <Rectangle.Fill>
                <LinearGradientBrush MappingMode="RelativeToBoundingBox" StartPoint="0.5,0" EndPoint="0.5,1">
                    <GradientStop Color="#FF065393" />
                    <GradientStop Offset="1" Color="#FF1D507A" />
                </LinearGradientBrush>
            </Rectangle.Fill>
        </Rectangle>
        <TextBlock
            Grid.Row="0"
            Grid.Column="0"
            Grid.ColumnSpan="3"
            Margin="20,10,0,0"
            HorizontalAlignment="Left"
            VerticalAlignment="Top"
            FontSize="18"
            FontWeight="Bold"
            Foreground="White"
            Text="ZMĚNA HESLA" />

        <Label
            Margin="20,40,0,0"
            Content="Původní heslo"
            FontWeight="Bold"
            Foreground="#FF383636"
            Style="{StaticResource DetailLabel}" />
        <PasswordBox
            x:Name="OldPasswordBox"
            Width="230"
            Height="25"
            Margin="20,70,0,0"
            HorizontalAlignment="Left"
            VerticalAlignment="Top"
            HorizontalContentAlignment="Left"
            VerticalContentAlignment="Center"
            Background="White"
            BorderBrush="#77869b"
            BorderThickness="1"
            FontSize="14"
            Foreground="#FF383636"
            PasswordChanged="OldPasswordBox_PasswordChanged" />

        <Label
            Margin="20,100,0,0"
            Content="Nové heslo"
            FontWeight="Bold"
            Foreground="#FF383636"
            Style="{StaticResource DetailLabel}" />
        <PasswordBox
            Width="230"
            Height="25"
            Margin="20,130,0,0"
            HorizontalAlignment="Left"
            VerticalAlignment="Top"
            HorizontalContentAlignment="Left"
            VerticalContentAlignment="Center"
            Background="White"
            BorderBrush="#77869b"
            BorderThickness="1"
            FontSize="14"
            Foreground="#FF383636"
            PasswordChanged="PasswordBox_PasswordChanged" />

        <Label
            Margin="20,160,0,0"
            Content="Kontrola nového hesla"
            FontWeight="Bold"
            Foreground="#FF383636"
            Style="{StaticResource DetailLabel}" />
        <PasswordBox
            Width="230"
            Height="25"
            Margin="20,190,0,0"
            HorizontalAlignment="Left"
            VerticalAlignment="Top"
            HorizontalContentAlignment="Left"
            VerticalContentAlignment="Center"
            Background="White"
            BorderBrush="#77869b"
            BorderThickness="1"
            FontSize="14"
            Foreground="#FF383636"
            PasswordChanged="PasswordBox_PasswordChanged_1" />

        <Button
            Grid.Row="8"
            Grid.Column="1"
            Width="70"
            Height="25"
            Margin="0,0,20,10"
            HorizontalAlignment="Right"
            VerticalAlignment="Bottom"
            HorizontalContentAlignment="Center"
            Background="#FF1D507A"
            BorderBrush="#FF24334D"
            BorderThickness="0"
            Command="{Binding ChangePasswordCommand}"
            CommandParameter="{Binding ElementName=ChangePasswordWindow}"
            Content="ZMĚNIT"
            FontSize="12"
            FontWeight="Bold"
            Foreground="White" />
        <Button
            Grid.Row="8"
            Grid.Column="1"
            Width="70"
            Height="25"
            Margin="20,0,0,10"
            HorizontalAlignment="Left"
            VerticalAlignment="Bottom"
            HorizontalContentAlignment="Center"
            Background="#FF1D507A"
            BorderBrush="#FF24334D"
            BorderThickness="0"
            Command="{Binding CancelCommand}"
            CommandParameter="{Binding ElementName=ChangePasswordWindow}"
            Content="ZRUŠIT"
            FontSize="12"
            FontWeight="Bold"
            Foreground="White" />
    </Grid>


</Window>
