<Page x:Class="JtkPcClientWpf.LoginPage"
      x:Name="thisPage"
      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
      xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
      xmlns:local="clr-namespace:JtkPcClientWpf"
      mc:Ignorable="d" 
      d:DesignHeight="720" d:DesignWidth="1280"
      Title="LoginPage"  Loaded="thisPage_Loaded">

    <Grid DataContext="{Binding ElementName=thisPage}">
        <Grid.Background>
            <ImageBrush ImageSource="black wallpaper.jpg" Stretch="UniformToFill"/>
        </Grid.Background>
        <Grid HorizontalAlignment="Center" Height="122" VerticalAlignment="Center" Width="200" Panel.ZIndex="10">
            <Border Padding="30" BorderBrush="White" BorderThickness="0" CornerRadius="10" Background="#7F000000" Margin="0,2,0,-2" />
            <TextBox x:Name="IdTextBox" Style="{StaticResource placeHolder}" HorizontalAlignment="Left" Height="22" TextWrapping="Wrap" Text="{Binding Path=UserId}" VerticalAlignment="Top" Width="180" Margin="10,10,0,0" ToolTip="아이디" Tag="baseline_person_white_24dp.png" Padding="0" />
            <!--<TextBox x:Name="PasswordTextBox" Style="{StaticResource placeHolder}" HorizontalAlignment="Left" Height="22" TextWrapping="Wrap" Text="{Binding Path=UserPassword}" VerticalAlignment="Top" Width="180" Margin="10,37,0,0" ToolTip="비밀번호"/>-->
            <Grid HorizontalAlignment="Left" VerticalAlignment="Top"  Margin="10,37,0,0" >
                <PasswordBox x:Name="passwordBox" Password="" Background="Transparent"  Padding="5,2,0,0" Panel.ZIndex="2" BorderBrush="#FF2C2C2C" BorderThickness="0" Foreground="White" PasswordChanged="PasswordBox_PasswordChanged"/>
                <TextBox x:Name="passwordBoxPlaceholder" Text="비밀번호" Width="180" Height="22" BorderBrush="#FF3B3B3B" Padding="5,2,0,0" Foreground="#FFA5A5A5" IsTabStop="False">
                    <TextBox.Background>
                        <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                            <GradientStop Color="#FF292929" Offset="0"/>
                            <GradientStop Color="#FF5B5B5B" Offset="1"/>
                        </LinearGradientBrush>
                    </TextBox.Background>
                </TextBox>
            </Grid>
            <TextBox x:Name="GuestIdTextBox" Style="{StaticResource placeHolder}" HorizontalAlignment="Left" Height="22" TextWrapping="Wrap" Text="{Binding GuestId}" VerticalAlignment="Top" Width="180" Margin="10,64,0,0" ToolTip="비회원 번호"/>
            <Button Content="로그인" HorizontalAlignment="Left" VerticalAlignment="Top" Width="180" Height="22" Margin="10,91,0,0" Click="LoginButton_Click" IsEnabled="{Binding ServerConnected}" IsDefault="True" />
            <!--<Button Content="회원가입" HorizontalAlignment="Left" VerticalAlignment="Top" Width="180" Height="22" Margin="10,118,0,0" Click="Button_Click"  />-->

        </Grid>
        <TextBlock HorizontalAlignment="Left" Margin="57,35,0,0" TextWrapping="Wrap" Text="{Binding Source={StaticResource loginManager}, Path=PcNumber, StringFormat='\{0:000}'}" VerticalAlignment="Top" FontSize="72" TextDecorations="Underline" Foreground="White">
            <TextBlock.Effect>
                <DropShadowEffect BlurRadius="20"/>
            </TextBlock.Effect>
        </TextBlock>
        <Image Margin="57,0,0,47" HorizontalAlignment="Left" Width="192" Height="89" VerticalAlignment="Bottom" Source="logo888.png"/>
        <TextBlock Margin="0,61,53,0" TextWrapping="Wrap" Text="{Binding PlaceName, Source={StaticResource loginManager}, StringFormat=\{0\}}" VerticalAlignment="Top" FontSize="48" TextDecorations="{x:Null}" Foreground="White" Height="120" HorizontalAlignment="Right" Width="604" TextAlignment="Right">
            <TextBlock.Effect>
                <DropShadowEffect BlurRadius="20"/>
            </TextBlock.Effect>
        </TextBlock>
        <Button Content="리뷰작성 테스트" HorizontalAlignment="Left" Margin="215,45,0,0" VerticalAlignment="Top" Width="139" Click="ReviewButton_Click" Visibility="Collapsed"/>

    </Grid>
</Page>
