| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374 |
- <Window x:Class="CCDCountWpf.UserLoginWindow"
- 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:CCDCountWpf"
- mc:Ignorable="d"
- Title="UserLoginWindow" Height="330" Width="450"
- WindowStartupLocation="CenterScreen" Icon="/FromImage/mmexport1752891278116.jpg" KeyDown="Window_KeyDown">
- <!--WindowStyle="None" AllowsTransparency="True"-->
- <Grid Background="#FF2C3E50">
- <Grid VerticalAlignment="Top" Height="60" Background="#FF2980B9">
- <Border BorderBrush="Black" BorderThickness="1"/>
- <Label Content="{DynamicResource UserLogin}" Foreground="White" FontSize="20" VerticalAlignment="Center" HorizontalAlignment="Center"/>
- <Button x:Name="SwitchLanguageBtn" Height="60" Width="60" Background="{x:Null}" Click="SwitchLanguageBtn_Click" HorizontalAlignment="Right" Margin="0,0,60,0">
- <StackPanel Orientation="Vertical" HorizontalAlignment="Center">
- <Image Source="/FromImage/语言_白.png" Width="35" Height="35" Margin="0,2,0,0" />
- <TextBlock Text="{DynamicResource SwitchLanguageText}" FontSize="10" FontWeight="Bold" Margin="0,3,0,0" HorizontalAlignment="Center" Foreground="White" />
- </StackPanel>
- </Button>
- <Button x:Name="KeyBoardBtn" Height="60" Background="{x:Null}" Click="KeyBoardBtn_Click" Width="60" HorizontalAlignment="Right">
- <StackPanel Orientation="Vertical" HorizontalAlignment="Center">
- <Image Source="/FromImage/键盘_白.png" Width="40" Height="40" />
- <TextBlock Text="{DynamicResource Keyboard}" FontSize="10" FontWeight="Bold" Margin="0,0,0,0" HorizontalAlignment="Center" Foreground="White" />
- </StackPanel>
- </Button>
- </Grid>
- <Border Background="#FF34495E"
- CornerRadius="8"
- BorderBrush="Gray"
- BorderThickness="1"
- Margin="80,120,80,0" Height="155" VerticalAlignment="Top">
- <StackPanel Orientation="Vertical">
- <StackPanel Orientation="Horizontal" Height="95" HorizontalAlignment="Center">
- <StackPanel Orientation="Vertical" Margin="0,0,0,0">
- <Label Content="{DynamicResource Username}" HorizontalAlignment="Left" Margin="10,10,0,0" VerticalAlignment="Top" FontWeight="Bold" FontSize="20" Foreground="White"/>
- <Label Content="{DynamicResource Password}" HorizontalAlignment="Left" Margin="10,10,0,0" VerticalAlignment="Top" FontWeight="Bold" FontSize="20" Foreground="White"/>
- </StackPanel>
- <StackPanel Orientation="Vertical">
- <TextBox x:Name="UserNameTbx" HorizontalAlignment="Left" Margin="0,15,0,0" Width="120" FontWeight="Bold" FontSize="20" Background="{x:Null}" GotFocus="UserNameTbx_GotFocus" Foreground="White"/>
- <PasswordBox x:Name="UserPassTbx" HorizontalAlignment="Left" Margin="0,17,0,0" VerticalAlignment="Top" Width="120" FontWeight="Bold" FontSize="20" Background="{x:Null}" GotFocus="UserPassTbx_GotFocus" Foreground="White" />
- </StackPanel>
- </StackPanel>
- <StackPanel Orientation="Horizontal" HorizontalAlignment="Center">
- <Button x:Name="UserLoginBtn" Content="{DynamicResource Login}" BorderThickness="1" HorizontalAlignment="Center" Margin="0,10,10,0" VerticalAlignment="Top" Width="80" Height="40" Style="{StaticResource BtnColor}" FontWeight="Bold" FontSize="20" Click="UserLoginBtn_Click" Cursor="Hand">
- <Button.Template>
- <ControlTemplate TargetType="Button">
- <Border CornerRadius="5"
- Background="{TemplateBinding Background}"
- BorderBrush="{TemplateBinding BorderBrush}"
- BorderThickness="{TemplateBinding BorderThickness}">
- <ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center"/>
- </Border>
- </ControlTemplate>
- </Button.Template>
- </Button>
- <Button x:Name="UserCancelBtn" Content="{DynamicResource Cancel}" BorderThickness="1" Margin="10,10,0,0" VerticalAlignment="Top" Width="80" Height="40" Style="{StaticResource BtnColor}" FontWeight="Bold" FontSize="20" Click="UserCancelBtn_Click" Cursor="Hand" HorizontalAlignment="Left">
- <Button.Template>
- <ControlTemplate TargetType="Button">
- <Border CornerRadius="5"
- Background="{TemplateBinding Background}"
- BorderBrush="{TemplateBinding BorderBrush}"
- BorderThickness="{TemplateBinding BorderThickness}">
- <ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center"/>
- </Border>
- </ControlTemplate>
- </Button.Template>
- </Button>
- </StackPanel>
- </StackPanel>
- <!-- 卡片内容 -->
- </Border>
- </Grid>
- </Window>
|