|
@@ -12,7 +12,50 @@
|
12
|
12
|
<Window.Effect>
|
13
|
13
|
<DropShadowEffect BlurRadius="10" Color="#bababa" Direction="80" ShadowDepth="0"/>
|
14
|
14
|
</Window.Effect>
|
|
15
|
+ <Window.Resources>
|
|
16
|
+ <Style x:Key="CheckBoxStyle1" TargetType="{x:Type CheckBox}">
|
|
17
|
+ <Setter Property="OverridesDefaultStyle" Value="True"/>
|
|
18
|
+ <Setter Property="SnapsToDevicePixels" Value="True"/>
|
|
19
|
+ <Setter Property="Template">
|
|
20
|
+ <Setter.Value>
|
|
21
|
+ <ControlTemplate TargetType="{x:Type CheckBox}">
|
|
22
|
+ <BulletDecorator FlowDirection="LeftToRight" VerticalAlignment="Center">
|
|
23
|
+ <BulletDecorator.Bullet>
|
|
24
|
+ <Border x:Name="bd"
|
|
25
|
+ BorderThickness="1"
|
|
26
|
+ BorderBrush="#B2B2B2"
|
|
27
|
+ MinHeight="13"
|
|
28
|
+ MinWidth="13"
|
|
29
|
+ VerticalAlignment="Center" Background="White">
|
|
30
|
+ <Path x:Name="cp" Width="12" Height="12"
|
|
31
|
+ Stroke="#4892E7"
|
|
32
|
+ StrokeThickness="2"/>
|
|
33
|
+ </Border>
|
15
|
34
|
|
|
35
|
+ </BulletDecorator.Bullet>
|
|
36
|
+ <TextBlock x:Name="textBlock" Margin="2,0" Text="{Binding Content, RelativeSource={RelativeSource TemplatedParent}}" FontFamily="Microsoft YaHei UI" FontSize="13.333"></TextBlock>
|
|
37
|
+ </BulletDecorator>
|
|
38
|
+ <!--
|
|
39
|
+ 控件触发器
|
|
40
|
+ -->
|
|
41
|
+ <ControlTemplate.Triggers>
|
|
42
|
+ <Trigger Property="IsChecked" Value="True">
|
|
43
|
+ <!-- 画上一个勾 -->
|
|
44
|
+ <Setter TargetName="cp" Property="Data"
|
|
45
|
+ Value="M 2,6 L 5,9 11,2"/>
|
|
46
|
+ <Setter Property="Foreground" TargetName="textBlock" Value="#FFE60E0E"/>
|
|
47
|
+
|
|
48
|
+ </Trigger>
|
|
49
|
+ <Trigger Property="IsMouseOver" Value="True">
|
|
50
|
+ <Setter TargetName="bd" Property="BorderBrush" Value="#1583DD">
|
|
51
|
+ </Setter>
|
|
52
|
+ </Trigger>
|
|
53
|
+ </ControlTemplate.Triggers>
|
|
54
|
+ </ControlTemplate>
|
|
55
|
+ </Setter.Value>
|
|
56
|
+ </Setter>
|
|
57
|
+ </Style>
|
|
58
|
+ </Window.Resources>
|
16
|
59
|
<Grid Background="#FFFFFF">
|
17
|
60
|
<!--分5行-->
|
18
|
61
|
<Grid.RowDefinitions>
|
|
@@ -30,30 +73,30 @@
|
30
|
73
|
</Grid>
|
31
|
74
|
</Border>
|
32
|
75
|
<!--第二行 登陆 账号-->
|
33
|
|
- <StackPanel Grid.Row="1" Orientation="Horizontal" Margin="20,30,0,0">
|
|
76
|
+ <StackPanel Grid.Row="1" Orientation="Horizontal" Margin="30,30,30,0">
|
34
|
77
|
<TextBlock Text="登陆" FontSize="18" Padding="2,15,10,0"/>
|
35
|
78
|
<!--输入框-->
|
36
|
|
- <Border Background="#cccbce" Width="369" Height="43" CornerRadius="3" Margin="0,0,0,1">
|
37
|
|
- <TextBox x:Name="txbAccountNumber" Text="" FontSize="16" Foreground="#333333" Padding="5,12,2,2" Width="367" Height="41" BorderBrush="{x:Null}" BorderThickness="0"/>
|
|
79
|
+ <Border Background="#cccbce" Width="344" Height="43" CornerRadius="3" Margin="0,0,0,1">
|
|
80
|
+ <TextBox x:Name="txbAccountNumber" Text="" FontSize="16" Foreground="#333333" Padding="5,12,2,2" Width="342" Height="41" BorderBrush="{x:Null}" BorderThickness="0"/>
|
38
|
81
|
</Border>
|
39
|
82
|
</StackPanel>
|
40
|
83
|
<!--第三行 密码-->
|
41
|
|
- <StackPanel Grid.Row="2" Orientation="Horizontal" Margin="20,30,0,1">
|
|
84
|
+ <StackPanel Grid.Row="2" Orientation="Horizontal" Margin="30,30,0,1">
|
42
|
85
|
<TextBlock Text="密码" FontSize="18" Padding="2,15,10,0"/>
|
43
|
86
|
<!--输入框-->
|
44
|
|
- <Border Background="#cccbce" Width="369" Height="43" CornerRadius="3">
|
45
|
|
- <PasswordBox x:Name="pobPassword" FontSize="16" Foreground="#333333" PasswordChar="*" Padding="5,12,2,2" Width="367" Height="41" BorderBrush="{x:Null}" BorderThickness="0"/>
|
|
87
|
+ <Border Background="#cccbce" Width="344" Height="43" CornerRadius="3">
|
|
88
|
+ <PasswordBox x:Name="pobPassword" FontSize="16" Foreground="#333333" PasswordChar="*" Padding="5,12,2,2" Width="342" Height="41" BorderBrush="{x:Null}" BorderThickness="0"/>
|
46
|
89
|
</Border>
|
47
|
90
|
</StackPanel>
|
48
|
|
- <StackPanel Grid.Row="3" Orientation="Horizontal" HorizontalAlignment="Left" Margin="20,10,0,0">
|
|
91
|
+ <StackPanel Grid.Row="3" Orientation="Horizontal" HorizontalAlignment="Left" Margin="32,10,0,0">
|
49
|
92
|
<Viewbox Height="23">
|
50
|
|
- <CheckBox x:Name="ckSaveName" Click="CkSaveName_Click"/>
|
|
93
|
+ <CheckBox Cursor="Hand" x:Name="ckSaveName" Click="CkSaveName_Click" Style="{DynamicResource CheckBoxStyle1}"/>
|
51
|
94
|
</Viewbox>
|
52
|
95
|
<TextBlock Text="记住账号" FontSize="18" Height="30" Padding="5,3,0,0" Margin="0,0,0,1"/>
|
53
|
96
|
</StackPanel>
|
54
|
97
|
|
55
|
98
|
<!--第五行 开始按钮-->
|
56
|
|
- <Button Cursor="Hand" Grid.Row="4" x:Name="btnStart" Content="登录" FontSize="18" Foreground="#FFFFFF" FontWeight="Bold" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Width="418" Height="48" Margin="10,0,10,0" Click="BtnStart_Click">
|
|
99
|
+ <Button Cursor="Hand" Grid.Row="4" x:Name="btnStart" Content="登录" FontSize="18" Foreground="#FFFFFF" FontWeight="Bold" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Width="394" Height="48" Margin="30,0,30,0" Click="BtnStart_Click">
|
57
|
100
|
<Button.Template>
|
58
|
101
|
<ControlTemplate TargetType="{x:Type Button}">
|
59
|
102
|
<Border
|