update
This commit is contained in:
parent
29830df36c
commit
546c248535
@ -8,7 +8,7 @@ namespace VideoConcat.Models
|
||||
{
|
||||
internal class MainWindowModel
|
||||
{
|
||||
public string? UserName { get; set; }
|
||||
public string? PassWord { get; set; }
|
||||
public string? Username { get; set; }
|
||||
public string? Password { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
@ -14,8 +14,8 @@ namespace VideoConcat.ViewModels
|
||||
|
||||
public void Login()
|
||||
{
|
||||
string userName = MainWindowsModel.UserName;
|
||||
string passWord = MainWindowsModel.PassWord;
|
||||
string? userName = MainWindowsModel.Username;
|
||||
string? passWord = MainWindowsModel.Password;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -6,59 +6,79 @@
|
||||
xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes"
|
||||
xmlns:local="clr-namespace:VideoConcat"
|
||||
mc:Ignorable="d"
|
||||
Title="登录" Height="300" Width="500"
|
||||
ResizeMode="NoResize" WindowStartupLocation="CenterScreen"
|
||||
>
|
||||
Title="登录"
|
||||
Height="300"
|
||||
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 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>
|
||||
<Border>
|
||||
<StackPanel Orientation="Horizontal" >
|
||||
<StackPanel Orientation="Horizontal">
|
||||
<StackPanel Width="500">
|
||||
<StackPanel >
|
||||
<TextBlock Margin="20" FontFamily="Great Vibes"
|
||||
FontSize="38" TextAlignment="Center">
|
||||
<StackPanel>
|
||||
<TextBlock Margin="20"
|
||||
FontFamily="Great Vibes"
|
||||
FontSize="38"
|
||||
TextAlignment="Center">
|
||||
用户登录
|
||||
</TextBlock>
|
||||
<StackPanel Margin="10" Orientation="Horizontal">
|
||||
<StackPanel Margin="10"
|
||||
Orientation="Horizontal">
|
||||
<materialDesign:PackIcon
|
||||
Width="30" Height="30"
|
||||
Kind="User" Margin="10,0,10,0"/>
|
||||
<TextBox Text="{Binding MainWindowModel.UserName}" Width="400"
|
||||
Margin="10,0" BorderBrush="White"
|
||||
Width="30"
|
||||
Height="30"
|
||||
Kind="User"
|
||||
Margin="10,0,10,0"/>
|
||||
<TextBox Text="{Binding MainWindowModel.Username}"
|
||||
Width="400"
|
||||
Margin="10,0"
|
||||
BorderBrush="White"
|
||||
CaretBrush="#FFD94448"
|
||||
SelectionBrush="#FFD94448"
|
||||
materialDesign:HintAssist.Hint="输入 用户名"/>
|
||||
</StackPanel>
|
||||
<StackPanel Margin="10" Orientation="Horizontal">
|
||||
<StackPanel Margin="10"
|
||||
Orientation="Horizontal">
|
||||
<materialDesign:PackIcon
|
||||
Width="30" Height="30"
|
||||
Kind="Lock" Margin="10,0,10,0"/>
|
||||
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="输入 密码"
|
||||
local:MainWindowModel="{Binding MainWindowModel.Password}"
|
||||
>
|
||||
Width="400"
|
||||
Margin="10,0"
|
||||
BorderBrush="White"
|
||||
CaretBrush="#FFD94448"
|
||||
SelectionBrush="#FFD94448"
|
||||
materialDesign:HintAssist.Hint="输入 密码"
|
||||
Password="{Binding MainWindowModel.Password}">
|
||||
</PasswordBox>
|
||||
</StackPanel>
|
||||
<StackPanel Margin="10" HorizontalAlignment="Center" VerticalAlignment="Center">
|
||||
<Button x:Name="btnLogin" Width="100" Height="40"
|
||||
<StackPanel Margin="10"
|
||||
HorizontalAlignment="Center"
|
||||
VerticalAlignment="Center">
|
||||
<Button x:Name="btnLogin"
|
||||
Width="100"
|
||||
Height="40"
|
||||
materialDesign:ButtonAssist.CornerRadius="5"
|
||||
Background="#40568D" BorderBrush="#7F7F7F" BorderThickness="2"
|
||||
Content="登录" ToolTip="登录"
|
||||
Style="{StaticResource MaterialDesignRaisedButton}" Click="BtnLogin_Click"/>
|
||||
Background="#40568D"
|
||||
BorderBrush="#7F7F7F"
|
||||
BorderThickness="2"
|
||||
Content="登录"
|
||||
ToolTip="登录"
|
||||
Style="{StaticResource MaterialDesignRaisedButton}"
|
||||
Click="BtnLogin_Click"/>
|
||||
</StackPanel>
|
||||
</StackPanel>
|
||||
</StackPanel>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user