164 lines
4.9 KiB
XML
164 lines
4.9 KiB
XML
<basewindows:BaseWindow
|
|
x:Class="_29WxOrderWpf.Windows.LoginWindows.LoginWindow"
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:basewindows="clr-namespace:_29WxOrderWpf.BaseWindows"
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
xmlns:local="clr-namespace:_29WxOrderWpf.Windows.LoginWindows"
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
xmlns:userctrls="clr-namespace:_29WxOrderWpf.UserControls"
|
|
x:Name="loginWindow"
|
|
Title="登录"
|
|
Width="400"
|
|
Height="300"
|
|
Closing="BaseWindow_Closing"
|
|
Loaded="loginWindow_Loaded"
|
|
ResizeMode="NoResize"
|
|
Style="{StaticResource BaseNoneBorderWindowStyle}"
|
|
mc:Ignorable="d">
|
|
<Grid Background="Transparent">
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="120" />
|
|
<RowDefinition Height="*" />
|
|
</Grid.RowDefinitions>
|
|
<Border Background="{StaticResource mainLinearColorBrush}" />
|
|
<Grid
|
|
Grid.Row="1"
|
|
Margin="2,0,2,2"
|
|
Background="White">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition />
|
|
<ColumnDefinition Width="180" />
|
|
<ColumnDefinition />
|
|
</Grid.ColumnDefinitions>
|
|
<Grid Grid.Column="1">
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="20" />
|
|
<RowDefinition />
|
|
<RowDefinition />
|
|
<RowDefinition />
|
|
<RowDefinition />
|
|
<RowDefinition Height="auto" />
|
|
<RowDefinition Height="20" />
|
|
</Grid.RowDefinitions>
|
|
<Border
|
|
Grid.Row="1"
|
|
Height="26"
|
|
BorderBrush="{StaticResource mainColorBrush}"
|
|
BorderThickness="1"
|
|
CornerRadius="4">
|
|
<Grid>
|
|
<ComboBox
|
|
x:Name="cmbUserNameMobile"
|
|
Margin="3,0"
|
|
VerticalContentAlignment="Center"
|
|
SelectionChanged="cmbUserNameMobile_SelectionChanged"
|
|
Style="{StaticResource BaseComboBoxStyle}">
|
|
<ComboBox.ItemTemplate>
|
|
<DataTemplate>
|
|
<!--<Grid HorizontalAlignment="Stretch" Width="{Binding RelativeSource={RelativeSource Mode=FindAncestor, AncestorType=ComboBox}, Path=Width}">
|
|
<TextBlock Text="{Binding}"/>
|
|
<Button x:Name="btnDeleteItem" HorizontalAlignment="Right" Content="X" Click="btnDeleteItem_Click"/>
|
|
</Grid>-->
|
|
<Grid Width="140" HorizontalAlignment="Stretch">
|
|
<TextBlock
|
|
x:Name="txtName"
|
|
Padding="0"
|
|
VerticalAlignment="Center"
|
|
Text="{Binding}" />
|
|
<userctrls:UcImageButton
|
|
x:Name="btnDeleteItem"
|
|
Width="17"
|
|
Height="17"
|
|
HorizontalAlignment="Right"
|
|
Background="Transparent"
|
|
BorderThickness="0"
|
|
ButtonImage="{StaticResource imgCloseGray}"
|
|
Click="btnDeleteItem_Click"
|
|
Cursor="Hand"
|
|
MouseOverButtonImage="{StaticResource imgCloseGray}"
|
|
MousePressButtonImage="{StaticResource imgCloseGray}"
|
|
Tag="{Binding ElementName=txtName, Path=Text}" />
|
|
</Grid>
|
|
</DataTemplate>
|
|
</ComboBox.ItemTemplate>
|
|
</ComboBox>
|
|
</Grid>
|
|
</Border>
|
|
<Border
|
|
Grid.Row="2"
|
|
Height="26"
|
|
BorderBrush="{StaticResource mainColorBrush}"
|
|
BorderThickness="1"
|
|
CornerRadius="4">
|
|
<PasswordBox
|
|
x:Name="txtPassword"
|
|
Margin="6,0"
|
|
VerticalContentAlignment="Center"
|
|
Style="{StaticResource BasePasswordBoxStyle}" />
|
|
</Border>
|
|
<CheckBox
|
|
x:Name="chkRemember"
|
|
Grid.Row="3"
|
|
HorizontalAlignment="Left"
|
|
VerticalAlignment="Center"
|
|
BorderBrush="{StaticResource mainColorBrush}"
|
|
Checked="chkRemember_Checked"
|
|
Content="记住密码"
|
|
FontSize="12" />
|
|
<Button
|
|
x:Name="btnLogin"
|
|
Grid.Row="4"
|
|
Height="26"
|
|
Click="btnLogin_Click"
|
|
Content="安 全 登 录"
|
|
Style="{StaticResource BaseButtonStyle}" />
|
|
<CheckBox
|
|
x:Name="chkDebug"
|
|
Grid.Row="5"
|
|
Height="24"
|
|
HorizontalAlignment="Left"
|
|
VerticalAlignment="Center"
|
|
VerticalContentAlignment="Center"
|
|
BorderBrush="{StaticResource mainColorBrush}"
|
|
Checked="chkDebug_Checked"
|
|
Content="调试模式"
|
|
FontSize="12"
|
|
Unchecked="chkDebug_Checked"
|
|
Visibility="Collapsed" />
|
|
|
|
</Grid>
|
|
</Grid>
|
|
|
|
<Image
|
|
Width="24"
|
|
Height="24"
|
|
Margin="4"
|
|
HorizontalAlignment="Left"
|
|
VerticalAlignment="Top"
|
|
Source="{StaticResource main29WeixinIcon}" />
|
|
<Label
|
|
x:Name="lblAppName"
|
|
Margin="0,14,0,0"
|
|
HorizontalAlignment="Center"
|
|
VerticalAlignment="Center"
|
|
Background="Transparent"
|
|
Content="拍单软件"
|
|
FontSize="28"
|
|
Foreground="{StaticResource mainColorLightBrush}"
|
|
Style="{x:Null}" />
|
|
<Label
|
|
x:Name="lblTitle"
|
|
Margin="30,2"
|
|
Content="{Binding ElementName=loginWindow, Path=Title}"
|
|
Foreground="White" />
|
|
<userctrls:UcWindowBoxes
|
|
Margin="4"
|
|
HorizontalAlignment="Right"
|
|
VerticalAlignment="Top"
|
|
MaxBoxVisibility="Collapsed"
|
|
MinBoxVisibility="Collapsed" />
|
|
|
|
</Grid>
|
|
</basewindows:BaseWindow>
|