<Window x:Class="VideoConcat.Views.LoginWindow"
        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:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes"
        xmlns:helpers="clr-namespace:VideoConcat.Helpers"
        xmlns:local="clr-namespace:VideoConcat"
        mc:Ignorable="d"
        Title="登录"
        Height="330"
        Width="500"
        ResizeMode="NoResize"
        WindowStartupLocation="CenterScreen">
    <Window.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="pack://application:,,,/MaterialDesignThemes.Wpf;component/Themes/MaterialDesignTheme.Light.xaml"/>
                <ResourceDictionary Source="pack://application:,,,/MaterialDesignThemes.Wpf;component/Themes/MaterialDesignTheme.Defaults.xaml"/>
                <ResourceDictionary Source="pack://application:,,,/MaterialDesignColors;component/Themes/Recommended/Primary/MaterialDesignColor.Red.xaml"/>
                <ResourceDictionary Source="pack://application:,,,/MaterialDesignColors;component/Themes/Recommended/Accent/MaterialDesignColor.Lime.xaml"/>

            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>
    </Window.Resources>
    <Grid>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="39*"/>
            <ColumnDefinition Width="461*"/>
        </Grid.ColumnDefinitions>
        <Border Grid.ColumnSpan="2">
            <StackPanel Orientation="Horizontal">
                <StackPanel Width="500">
                    <StackPanel>
                        <TextBlock Margin="20"
                                   FontFamily="Great Vibes"
                                   FontSize="38"
                                   TextAlignment="Center">
                            用户登录
                        </TextBlock>
                        <StackPanel Margin="10"
                                    Orientation="Horizontal">
                            <materialDesign:PackIcon
                                Width="30" Height="30" 
                                Kind="User" Margin="10,0,10,0"/>
                            <TextBox x:Name="Username"  Width="400"
                                     Margin="10,0" BorderBrush="White"
                                     CaretBrush="#FFD94448" 
                                     SelectionBrush="#FFD94448"
                                     materialDesign:HintAssist.Hint="输入 用户名"/>
                        </StackPanel>
                        <StackPanel Margin="10"
                                    Orientation="Horizontal">
                            <materialDesign:PackIcon
                                 Width="30" Height="30"
                                 Kind="Lock" Margin="10,0,10,0"/>
                            <PasswordBox  
                                      Width="400"
                                      Margin="10,0" BorderBrush="White"
                                      CaretBrush="#FFD94448" 
                                      SelectionBrush="#FFD94448"
                                      materialDesign:HintAssist.Hint="输入 密码"
                                x:Name="Password"/>
                            <PasswordBox
                                Width="400"
                                Margin="10,0"
                                BorderBrush="White"
                                CaretBrush="#FFD94448"
                                SelectionBrush="#FFD94448"
                                materialDesign:HintAssist.Hint="输入 密码"
                                helpers:PasswordBoxHelper.BindPassword="True" 
                                helpers:PasswordBoxHelper.BoundPassword="{Binding Password, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}">
                            </PasswordBox>

                        </StackPanel>
                        <StackPanel Margin="10" Orientation="Horizontal">
                            <CheckBox HorizontalAlignment="Right" VerticalAlignment="Center" FontSize="30" x:Name="ckbRemember" Width="30" Height="30"  Margin="15,0,10,0" IsChecked="True"></CheckBox>
                            <TextBlock VerticalAlignment="Center" Margin="10,0">记住我</TextBlock>
                        </StackPanel>
                        <StackPanel Margin="10" HorizontalAlignment="Center" VerticalAlignment="Center">
                            <Button  x:Name="btnLogin" Width="100" Height="40"
                                     materialDesign:ButtonAssist.CornerRadius="2"
                                     Background="#40568D" BorderBrush="#7F7F7F" BorderThickness="2"
                                     Content="登录" ToolTip="登录"
                                     Style="{StaticResource MaterialDesignRaisedButton}" Click="BtnLogin_Click"/>
                        </StackPanel>
                    </StackPanel>
                </StackPanel>

            </StackPanel>

        </Border>
    </Grid>
</Window>
